mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
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…
x
Reference in New Issue
Block a user