Skip to content

Commit

Permalink
fix(abstracttarget): conflicting dropdowns
Browse files Browse the repository at this point in the history
cannot set group from a question  because its value is overriden by the value of the group from an object

Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Oct 29, 2021
1 parent ce9deaf commit 57b775f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/abstracttarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
'itemtype' => $this->getType(),
'items_id' => $this->getID(),
'actor_role' => $actorRole,
'actor_type' => PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_GROUP,
'actor_type' => PluginFormcreatorTarget_Actor::ACTOR_TYPE_GROUP_FROM_OBJECT,
]
]);
$used = [];
Expand All @@ -2018,7 +2018,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
[
'fieldtype' => ['glpiselect'],
],
'actor_value_' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_GROUP,
'actor_value_' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_GROUP_FROM_OBJECT,
0,
[
'used' => $used,
Expand Down

0 comments on commit 57b775f

Please sign in to comment.