diff --git a/src/Service/ProcessService.php b/src/Service/ProcessService.php index 328499f2762e0168982eac51b8dc71f501eee434..54b7cb51eb2fe5b75681415df3a76515e2e4d36a 100644 --- a/src/Service/ProcessService.php +++ b/src/Service/ProcessService.php @@ -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'])