@@ -473,25 +473,6 @@ private function loadLibreSignData(): void {
473473 }
474474 }
475475
476- if ($ this ->fileData ->nodeType !== 'envelope ' ) {
477- $ this ->fileData ->filesCount = 1 ;
478- if (empty ($ this ->fileData ->files )) {
479- $ this ->fileData ->files = [
480- (object )[
481- 'id ' => $ this ->file ->getId (),
482- 'uuid ' => $ this ->file ->getUuid (),
483- 'name ' => $ this ->file ->getName (),
484- 'status ' => $ this ->file ->getStatus (),
485- 'statusText ' => $ this ->fileMapper ->getTextOfStatus ($ this ->file ->getStatus ()),
486- 'nodeId ' => $ this ->file ->getNodeId (),
487- 'metadata ' => $ this ->file ->getMetadata () ?? [],
488- 'signers ' => [],
489- 'size ' => 0 ,
490- ],
491- ];
492- }
493- }
494-
495476 $ this ->fileData ->requested_by = [
496477 'userId ' => $ this ->file ->getUserId (),
497478 'displayName ' => $ this ->userManager ->get ($ this ->file ->getUserId ())->getDisplayName (),
@@ -640,6 +621,7 @@ private function syncSingleFileCollection(): void {
640621 'mime ' => $ this ->fileData ->mime ?? '' ,
641622 'size ' => $ this ->fileData ->size ?? 0 ,
642623 'signers ' => $ this ->fileData ->signers ?? [],
624+ 'file ' => $ this ->urlGenerator ->linkToRoute ('libresign.page.getPdf ' , ['uuid ' => $ this ->fileData ->uuid ]),
643625 ],
644626 ];
645627 }
0 commit comments