From ab4193938dcc762aa6c4a57d20022b2c9befa977 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 10 Jul 2024 15:39:14 +0200 Subject: [PATCH] Adjust the structure of the signature metadata --- .../ChillMainBundle/Controller/WorkflowController.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Controller/WorkflowController.php b/src/Bundle/ChillMainBundle/Controller/WorkflowController.php index ce9220d3c..9d130c82e 100644 --- a/src/Bundle/ChillMainBundle/Controller/WorkflowController.php +++ b/src/Bundle/ChillMainBundle/Controller/WorkflowController.php @@ -284,7 +284,7 @@ class WorkflowController extends AbstractController $isSignaturePerson = false; $signatures = $entityWorkflow->getCurrentStep()->getSignatures(); - //todo: change this logic to use the workflow definition metadata isSignature + // todo: change this logic to use the workflow definition metadata isSignature if (!$signatures->isEmpty()) { $isSignaturePerson = $signatures[0]->getSigner() instanceof Person; } @@ -393,9 +393,11 @@ class WorkflowController extends AbstractController $signature->setSignatureMetadata( [ - 'documentType' => $data['documentType'], - 'documentNumber' => $data['documentNumber'], - 'expirationDate' => $data['expirationDate'], + 'base_signer' => [ + 'document_type' => $data['documentType'], + 'document_number' => $data['documentNumber'], + 'expiration_date' => $data['expirationDate'], + ], ] );