mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +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)
|
protected function addChoices($type)
|
||||||
{
|
{
|
||||||
$connection = $this->getDb();
|
$connection = $this->getDb();
|
||||||
$choiceType = $type . 'TemplateChoice';
|
$choiceType = 'TemplateChoice' . ucfirst($type);
|
||||||
$choices = IcingaObject::loadAllByType($choiceType, $connection);
|
$choices = IcingaObject::loadAllByType($choiceType, $connection);
|
||||||
foreach ($choices as $choice) {
|
foreach ($choices as $choice) {
|
||||||
$this->addChoiceElement($choice);
|
$this->addChoiceElement($choice);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user