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();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$tpl = array_combine($tpl, $tpl);
|
$id = $object->id;
|
||||||
$id = $object->object_name;
|
|
||||||
|
|
||||||
if (array_key_exists($id, $tpl)) {
|
if (array_key_exists($id, $tpl)) {
|
||||||
unset($tpl[$id]);
|
unset($tpl[$id]);
|
||||||
}
|
}
|
||||||
|
$tpl = array_combine($tpl, $tpl);
|
||||||
return $tpl;
|
return $tpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue