Skip to content

Commit c38e1d9

Browse files
committed
fix(targetticket): select questions outside form
1 parent 70b77d3 commit c38e1d9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

inc/abstractitiltarget.class.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,13 @@ protected function showValidationSettings($rand) {
13191319
PluginFormcreatorQuestion::dropdownForForm(
13201320
$this->getForm(),
13211321
[
1322-
new QueryExpression("`fieldtype` = 'actor' OR (`fieldtype` = 'glpiselect' AND `itemtype`='User')"),
1322+
'OR' => [
1323+
'fieldtype' => 'actor',
1324+
'AND' => [
1325+
'fieldtype' => 'glpiselect',
1326+
'itemtype' => 'User',
1327+
]
1328+
]
13231329
],
13241330
'_validation_from_user_question',
13251331
$this->fields['commonitil_validation_question'],

0 commit comments

Comments
 (0)