Skip to content
Snippets Groups Projects
Commit d4a5f49f authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Permettre de passer à la signature un libellé plus précis sur le process label.

parent 576531eb
No related merge requests found
Pipeline #31639 passed
......@@ -195,11 +195,12 @@ class ProcessService
// Création de la signature
$signature = new Signature();
$label = (array_key_exists('label', $jsonDatas))?$jsonDatas['label']:$process->getLabel();
$this->getObjectManager()->persist($signature);
$signature->setDocumentPath($process->getDocumentName())
->setStatus(Signature::STATUS_SIGNATURE_DRAFT)
->setDateCreated(new \DateTime())
->setLabel($process->getLabel() . ' - ' . $stepData['label'])
->setLabel($label . ' - ' . $stepData['label'])
->setContextShort($stepData['context_subject'] ?? "")
->setContextLong($stepData['context_body'] ?? "")
->setDescription($stepData['description'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment