From d4a5f49fb49c2c04360a1f741c25248ac6e3142c Mon Sep 17 00:00:00 2001 From: Antony Le Courtes <antony.lecourtes@unicaen.fr> Date: Wed, 16 Oct 2024 12:01:25 +0200 Subject: [PATCH] =?UTF-8?q?Permettre=20de=20passer=20=C3=A0=20la=20signatu?= =?UTF-8?q?re=20un=20libell=C3=A9=20plus=20pr=C3=A9cis=20sur=20le=20proces?= =?UTF-8?q?s=20label.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Service/ProcessService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Service/ProcessService.php b/src/Service/ProcessService.php index 328499f..54b7cb5 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']) -- GitLab