Skip to content

Commit 5c41af7

Browse files
authored
fix: display supplier input field when selecting a supplier from the … (#3572)
* fix: display supplier input field when selecting a supplier from the dropdown * fix: remove supplier dropwdown in target observer
1 parent 201e28d commit 5c41af7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/abstractitiltarget.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,8 @@ protected function showActorSettingsForType($actorType, array $actors) {
18071807
break;
18081808
case CommonITILActor::OBSERVER:
18091809
$type = 'watcher';
1810+
unset($dropdownItems[PluginFormcreatorTarget_Actor::ACTOR_TYPE_SUPPLIER]);
1811+
unset($dropdownItems[PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_SUPPLIER]);
18101812
$changeActorJSFunction = 'plugin_formcreator.changeActor("watcher", this.value)';
18111813
$actorRole = PluginFormcreatorTarget_Actor::ACTOR_ROLE_OBSERVER;
18121814
break;

0 commit comments

Comments
 (0)