Skip to content

Commit

Permalink
fix(targetticket,targetchange): unable to select email questions for …
Browse files Browse the repository at this point in the history
…actors from questions
  • Loading branch information
btry committed Aug 22, 2019
1 parent 404232b commit b466d34
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,15 @@ protected function showActorsSettings() {
PluginFormcreatorQuestion::dropdownForForm(
$this->getForm()->getID(),
[
'fieldtype' => ['glpiselect'],
'values' => User::class,
'OR' => [
'AND' => [
'fieldtype' => ['glpiselect'],
'values' => User::class,
],
[
'fieldtype' => ['email'],
]
],
],
'actor_value_' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_PERSON,
[
Expand Down Expand Up @@ -1236,8 +1243,15 @@ protected function showActorsSettings() {
PluginFormcreatorQuestion::dropdownForForm(
$this->getForm()->getID(),
[
'fieldtype' => ['glpiselect'],
'values' => User::class,
'OR' => [
'AND' => [
'fieldtype' => ['glpiselect'],
'values' => User::class,
],
[
'fieldtype' => ['email'],
]
],
],
'actor_value_' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_PERSON,
[
Expand Down Expand Up @@ -1373,8 +1387,15 @@ protected function showActorsSettings() {
PluginFormcreatorQuestion::dropdownForForm(
$this->getForm()->getID(),
[
'fieldtype' => ['glpiselect'],
'values' => User::class,
'OR' => [
'AND' => [
'fieldtype' => ['glpiselect'],
'values' => User::class,
],
[
'fieldtype' => ['email'],
]
],
],
'actor_value_' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_PERSON,
[
Expand Down

0 comments on commit b466d34

Please sign in to comment.