Skip to content

Commit 2c5e847

Browse files
AdrienClairembaulttrasher
authored andcommitted
Fix groups filtering in helpdesk forms
1 parent ce3c3b4 commit 2c5e847

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/Glpi/Form/QuestionType/AbstractQuestionTypeActors.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,13 @@ public function renderEndUserTemplate(Question $question): string
416416
question.getEndUserInputName(),
417417
value,
418418
{
419-
'form_id' : question.getForm().getId(),
420-
'multiple' : is_multiple_actors,
421-
'allowed_types' : allowed_types,
422-
'aria_label' : aria_label,
423-
'mb' : '',
424-
'right_for_users': right_for_users,
419+
'form_id' : question.getForm().getId(),
420+
'multiple' : is_multiple_actors,
421+
'allowed_types' : allowed_types,
422+
'aria_label' : aria_label,
423+
'mb' : '',
424+
'right_for_users' : right_for_users,
425+
'group_conditions': group_conditions,
425426
}
426427
]) %}
427428
@@ -450,6 +451,7 @@ public function renderEndUserTemplate(Question $question): string
450451
'is_multiple_actors' => $is_multiple_actors,
451452
'aria_label' => $question->fields['name'],
452453
'right_for_users' => $this->getRightForUsers(),
454+
'group_conditions' => $this->getGroupConditions(),
453455
]);
454456
}
455457

0 commit comments

Comments
 (0)