@@ -927,7 +927,7 @@ protected function showDestinationEntitySetings($rand) {
927
927
$ this ->getForm ()->getID (),
928
928
[
929
929
'fieldtype ' => ['glpiselect ' ],
930
- 'values ' => User::class,
930
+ 'values ' => [ ' LIKE ' , ' %"itemtype":" ' . User::class . ' "% ' ] ,
931
931
],
932
932
'_destination_entity_value_user ' ,
933
933
$ this ->fields ['destination_entity_value ' ]
@@ -939,7 +939,7 @@ protected function showDestinationEntitySetings($rand) {
939
939
$ this ->getForm ()->getID (),
940
940
[
941
941
'fieldtype ' => ['glpiselect ' ],
942
- 'values ' => Entity::class,
942
+ 'values ' => [ ' LIKE ' , ' %"itemtype":" ' . Entity::class . ' "% ' ] ,
943
943
],
944
944
'_destination_entity_value_entity ' ,
945
945
$ this ->fields ['destination_entity_value ' ]
@@ -1193,6 +1193,7 @@ protected function showCategorySettings($rand) {
1193
1193
$ this ->getForm ()->getID (),
1194
1194
[
1195
1195
'fieldtype ' => ['dropdown ' ],
1196
+ 'values ' => ['LIKE ' , '%"itemtype":" ' . ITILCategory::class . '"% ' ],
1196
1197
],
1197
1198
'_category_question ' ,
1198
1199
$ this ->fields ['category_question ' ]
@@ -1934,7 +1935,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
1934
1935
'OR ' => [
1935
1936
'AND ' => [
1936
1937
'fieldtype ' => ['glpiselect ' ],
1937
- 'values ' => User::class,
1938
+ 'values ' => [ ' LIKE ' , ' %"itemtype":" ' . User::class . ' "% ' ] ,
1938
1939
],
1939
1940
[
1940
1941
'fieldtype ' => ['email ' ],
@@ -1951,7 +1952,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
1951
1952
$ this ->getForm ()->getID (),
1952
1953
[
1953
1954
'fieldtype ' => ['glpiselect ' ],
1954
- 'values ' => Group::class,
1955
+ 'values ' => [ ' LIKE ' , ' %"itemtype":" ' . Group::class . ' "% ' ] ,
1955
1956
],
1956
1957
'actor_value_ ' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_GROUP ,
1957
1958
0
@@ -2003,7 +2004,7 @@ protected function showActorSettingsForType($actorType, array $actors) {
2003
2004
$ this ->getForm ()->getID (),
2004
2005
[
2005
2006
'fieldtype ' => ['glpiselect ' ],
2006
- 'values ' => Supplier::class,
2007
+ 'values ' => [ ' LIKE ' , ' %"itemtype":" ' . Supplier::class . ' "% ' ] ,
2007
2008
],
2008
2009
'actor_value_ ' . PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_SUPPLIER ,
2009
2010
0
0 commit comments