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…
Reference in New Issue