From 88026152d3789d28b4aeede8597b93289fe2ade9 Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Tue, 1 Oct 2024 16:08:17 +0100
Subject: [PATCH] :sparkles: (CORE) - tasks - allows referencal helper to
 subTasks

Allows referencal helper to subTasks.
---
 plugins/workflow/tasks/class_tasks.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/workflow/tasks/class_tasks.inc b/plugins/workflow/tasks/class_tasks.inc
index d95aae6bd..d4acdcfb9 100644
--- a/plugins/workflow/tasks/class_tasks.inc
+++ b/plugins/workflow/tasks/class_tasks.inc
@@ -206,6 +206,8 @@ class tasks extends simplePlugin
               "fdTasksGranularType" => $taskType,
               // Verification as 'ref' could potentially not be present depending on the logic of the main task.
               "fdTasksGranularRef"  => !empty($attrs['ref'][$dn]) ? array_values($attrs['ref'][$dn]) : [],
+              // Verification if any helper reference must be added to help further backend processing.
+              "fdTasksGranularRef"  => !empty($attrs['helper']) ? array_values($attrs['helper']) : [],
             ];
             break;
         }
-- 
GitLab