Skip to content

Commit

Permalink
fix(targetticket): select questions outside form
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed May 9, 2022
1 parent 70b77d3 commit c38e1d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/abstractitiltarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,13 @@ protected function showValidationSettings($rand) {
PluginFormcreatorQuestion::dropdownForForm(
$this->getForm(),
[
new QueryExpression("`fieldtype` = 'actor' OR (`fieldtype` = 'glpiselect' AND `itemtype`='User')"),
'OR' => [
'fieldtype' => 'actor',
'AND' => [
'fieldtype' => 'glpiselect',
'itemtype' => 'User',
]
]
],
'_validation_from_user_question',
$this->fields['commonitil_validation_question'],
Expand Down

0 comments on commit c38e1d9

Please sign in to comment.