DirectorObjectForm: adjust choice loading to fit
...new class names
This commit is contained in:
parent
9845cddcb4
commit
d7422fa55c
|
@ -1043,7 +1043,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||
protected function addChoices($type)
|
||||
{
|
||||
$connection = $this->getDb();
|
||||
$choiceType = $type . 'TemplateChoice';
|
||||
$choiceType = 'TemplateChoice' . ucfirst($type);
|
||||
$choices = IcingaObject::loadAllByType($choiceType, $connection);
|
||||
foreach ($choices as $choice) {
|
||||
$this->addChoiceElement($choice);
|
||||
|
|
Loading…
Reference in New Issue