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
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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'])