DirectorObjectForm: blacklist ids not names...

...when fetching allowed templates
This commit is contained in:
Thomas Gelf 2016-03-27 12:55:05 +02:00
parent dc43a40b41
commit fd1bc38609
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}