Skip to content

Commit 57b775f

Browse files
committed
fix(abstracttarget): conflicting dropdowns
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 <tbugier@teclib.com>
1 parent ce9deaf commit 57b775f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/abstracttarget.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
20052005
'itemtype' => $this->getType(),
20062006
'items_id' => $this->getID(),
20072007
'actor_role' => $actorRole,
2008-
'actor_type' => PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_GROUP,
2008+
'actor_type' => PluginFormcreatorTarget_Actor::ACTOR_TYPE_GROUP_FROM_OBJECT,
20092009
]
20102010
]);
20112011
$used = [];
@@ -2018,7 +2018,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
20182018
[
20192019
'fieldtype' => ['glpiselect'],
20202020
],
2021-
'actor_value_' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_GROUP,
2021+
'actor_value_' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_GROUP_FROM_OBJECT,
20222022
0,
20232023
[
20242024
'used' => $used,

0 commit comments

Comments
 (0)