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