parent
cf5b7c7001
commit
f3056c6f2c
|
@ -1116,6 +1116,10 @@ abstract class DirectorObjectForm extends DirectorForm
|
||||||
*/
|
*/
|
||||||
protected function addChoices($type)
|
protected function addChoices($type)
|
||||||
{
|
{
|
||||||
|
if ($this->isTemplate()) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
$connection = $this->getDb();
|
$connection = $this->getDb();
|
||||||
$choiceType = 'TemplateChoice' . ucfirst($type);
|
$choiceType = 'TemplateChoice' . ucfirst($type);
|
||||||
$choices = IcingaObject::loadAllByType($choiceType, $connection);
|
$choices = IcingaObject::loadAllByType($choiceType, $connection);
|
||||||
|
|
Loading…
Reference in New Issue