@@ -489,11 +489,9 @@ private function loadLibreSignSigners(): void {
489489 private function loadSignersFromCertData (): void {
490490 $ this ->loadCertDataFromLibreSignFile ();
491491 foreach ($ this ->certData as $ index => $ signer ) {
492- // Always set status and statusText for signers from certificate data
493- // These are already signed (status 2)
494492 $ this ->fileData ->signers [$ index ]['status ' ] = 2 ;
495493 $ this ->fileData ->signers [$ index ]['statusText ' ] = $ this ->signRequestMapper ->getTextOfSignerStatus (2 );
496-
494+
497495 if (isset ($ signer ['timestamp ' ])) {
498496 $ this ->fileData ->signers [$ index ]['timestamp ' ] = $ signer ['timestamp ' ];
499497 if (isset ($ signer ['timestamp ' ]['genTime ' ]) && $ signer ['timestamp ' ]['genTime ' ] instanceof DateTimeInterface) {
@@ -841,10 +839,10 @@ private function associateAllAndFormat(IUser $user, array $files, array $signers
841839 'request_sign_date ' => $ signer ->getCreatedAt ()->format (DateTimeInterface::ATOM ),
842840 'signed ' => null ,
843841 'signRequestId ' => $ signer ->getId (),
844- 'signingOrder ' => $ signer ->getSigningOrder (),
845- 'status ' => $ signer ->getStatus (),
846- 'statusText ' => $ this ->signRequestMapper ->getTextOfSignerStatus ($ signer ->getStatus ()),
847- 'me ' => array_reduce ($ identifyMethodsOfSigner , function (bool $ carry , IdentifyMethod $ identifyMethod ) use ($ user ): bool {
842+ 'signingOrder ' => $ signer ->getSigningOrder (),
843+ 'status ' => $ signer ->getStatus (),
844+ 'statusText ' => $ this ->signRequestMapper ->getTextOfSignerStatus ($ signer ->getStatus ()),
845+ 'me ' => array_reduce ($ identifyMethodsOfSigner , function (bool $ carry , IdentifyMethod $ identifyMethod ) use ($ user ): bool {
848846 if ($ identifyMethod ->getIdentifierKey () === IdentifyMethodService::IDENTIFY_ACCOUNT ) {
849847 if ($ user ->getUID () === $ identifyMethod ->getIdentifierValue ()) {
850848 return true ;
0 commit comments