mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-02 22:17:45 +00:00
Adjust the structure of the signature metadata
This commit is contained in:
parent
e2426ba1d8
commit
ab4193938d
@ -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'],
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user