mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-03 22:47: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;
|
$isSignaturePerson = false;
|
||||||
|
|
||||||
$signatures = $entityWorkflow->getCurrentStep()->getSignatures();
|
$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()) {
|
if (!$signatures->isEmpty()) {
|
||||||
$isSignaturePerson = $signatures[0]->getSigner() instanceof Person;
|
$isSignaturePerson = $signatures[0]->getSigner() instanceof Person;
|
||||||
}
|
}
|
||||||
@ -393,9 +393,11 @@ class WorkflowController extends AbstractController
|
|||||||
|
|
||||||
$signature->setSignatureMetadata(
|
$signature->setSignatureMetadata(
|
||||||
[
|
[
|
||||||
'documentType' => $data['documentType'],
|
'base_signer' => [
|
||||||
'documentNumber' => $data['documentNumber'],
|
'document_type' => $data['documentType'],
|
||||||
'expirationDate' => $data['expirationDate'],
|
'document_number' => $data['documentNumber'],
|
||||||
|
'expiration_date' => $data['expirationDate'],
|
||||||
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user