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