From 36a8288798af880180441de81d551c71424cd301 Mon Sep 17 00:00:00 2001
From: Antony Le Courtes <antony.lecourtes@unicaen.fr>
Date: Mon, 16 Sep 2024 10:08:44 +0200
Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20v=C3=A9rification=20sur=20l'exi?=
 =?UTF-8?q?stence=20d'une=20cl=C3=A8s=20"recipient"=20lors=20de=20la=20cr?=
 =?UTF-8?q?=C3=A9ation=20des=20datas=20pour=20la=20d=C3=A9clenchement=20d'?=
 =?UTF-8?q?un=20process?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/Service/SignatureService.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Service/SignatureService.php b/src/Service/SignatureService.php
index 908b8ff..b40a593 100644
--- a/src/Service/SignatureService.php
+++ b/src/Service/SignatureService.php
@@ -309,7 +309,11 @@ class SignatureService
                 $recipients = array_values($recipientsDatas);
             }
             else {
-                $recipients = $step->getOptions()['recipients'];
+                $optionsStep = $step->getOptions();
+                if(array_key_exists('recipients', $optionsStep))
+                {
+                    $recipients = $step->getOptions()['recipients'];
+                }
             }
 
             if ($recipients == null) {
-- 
GitLab