File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function __construct(
5353 public function save (array $ data ): FileEntity {
5454 $ file = $ this ->saveFile ($ data );
5555 $ this ->saveVisibleElements ($ data , $ file );
56- if (empty ($ data ['status ' ])) {
56+ if (! isset ($ data ['status ' ])) {
5757 $ data ['status ' ] = $ file ->getStatus ();
5858 }
5959 $ this ->associateToSigners ($ data , $ file ->getId ());
@@ -289,6 +289,8 @@ private function associateToSigner(
289289 }
290290
291291 private function determineInitialStatus (int $ signingOrder , ?int $ fileStatus = null ): \OCA \Libresign \Enum \SignRequestStatus {
292+ // If fileStatus is explicitly DRAFT (0), keep signer as DRAFT
293+ // This allows adding new signers in DRAFT mode even when file is not in DRAFT status
292294 if ($ fileStatus === FileEntity::STATUS_DRAFT ) {
293295 return \OCA \Libresign \Enum \SignRequestStatus::DRAFT ;
294296 }
You can’t perform that action at this time.
0 commit comments