Skip to content

Commit

Permalink
Fix(Condition): load all users from User dropdown
Browse files Browse the repository at this point in the history
* Fix(Condition): load all users from User dropdown
  • Loading branch information
stonebuzz authored Feb 9, 2024
1 parent 874a57f commit 9bc5cc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions inc/containerdisplaycondition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ public static function showSearchOptionCondition($searchoption_id, $itemtype, ?s
true,
is_a($twig_params['dropdown_itemtype'], CommonTreeDropdown::class, true)
);

$twig_params['dropdown_option'] = [];
if ($twig_params['dropdown_itemtype'] == User::class) {
$twig_params['dropdown_option'] = ['right' => 'all'];
}
} elseif ($so['datatype'] == 'specific' && get_parent_class($itemtype) == CommonITILObject::getType()) {
$twig_params['list_conditions'] = self::getComparisonOperators(true);
$twig_params['is_specific'] = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
'value',
value,
__('Value'),
{}
dropdown_option
) }}

{% elseif is_specific %}
Expand Down

0 comments on commit 9bc5cc8

Please sign in to comment.