diff --git a/inc/targetbase.class.php b/inc/targetbase.class.php index 25df4f58e..358e780cb 100644 --- a/inc/targetbase.class.php +++ b/inc/targetbase.class.php @@ -1517,19 +1517,19 @@ protected function showActorSettingsHeader($type) { /** * Show header for actors edition * - * @param integer $type see CommonITILActor constants + * @param integer $actorType see CommonITILActor constants * @param array $actors actors to show * @return void */ - protected function showActorSettingsForType($type, array $actors) { + protected function showActorSettingsForType($actorType, array $actors) { $itemActor = $this->getItem_Actor(); $dropdownItems = ['' => Dropdown::EMPTY_VALUE] + $itemActor::getEnumActorType(); - switch ($type) { // Values from CommonITILObject::getSearchOptionsActors() + switch ($actorType) { // Values from CommonITILObject::getSearchOptionsActors() case CommonITILActor::REQUESTER: $type = 'requester'; - unset($dropdownItems['supplier']); - unset($dropdownItems['question_supplier']); + unset($dropdownItems[PluginFormcreatorTarget_Actor::ACTOR_TYPE_SUPPLIER]); + unset($dropdownItems[PluginFormcreatorTarget_Actor::ACTOR_TYPE_QUESTION_SUPPLIER]); $changeActorJSFunction = 'plugin_formcreator_ChangeActorRequester(this.value)'; $actorRole = PluginFormcreatorTarget_Actor::ACTOR_ROLE_REQUESTER; break; @@ -1643,6 +1643,28 @@ protected function showActorSettingsForType($type, array $actors) { ); echo ''; + if ($actorType == CommonITILActor::ASSIGN) { + echo '
'; + + echo ' '; + } + echo '