mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-10 07:24:26 +02:00
DirectorObjectForm: blacklist ids not names...
...when fetching allowed templates
This commit is contained in:
parent
dc43a40b41
commit
fd1bc38609
@ -1212,12 +1212,12 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
return array();
|
||||
}
|
||||
|
||||
$tpl = array_combine($tpl, $tpl);
|
||||
$id = $object->object_name;
|
||||
$id = $object->id;
|
||||
|
||||
if (array_key_exists($id, $tpl)) {
|
||||
unset($tpl[$id]);
|
||||
}
|
||||
$tpl = array_combine($tpl, $tpl);
|
||||
return $tpl;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user