Adjust the structure of the signature metadata

This commit is contained in:
Julie Lenaerts 2024-07-10 15:39:14 +02:00
parent e2426ba1d8
commit ab4193938d

View File

@ -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'],
],
]
);