mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
monitoring/commands: Fix `ToggleFeatureCommandForm::createElements()'
`Icinga\Web\Form::createElements()' no longer requires to return an array of elements because elements should be created directly. refs #6593
This commit is contained in:
parent
8d109132b0
commit
bc1d00f146
@ -63,8 +63,7 @@ abstract class ToggleFeatureCommandForm extends CommandForm
|
|||||||
->getQuery()
|
->getQuery()
|
||||||
->fetchRow();
|
->fetchRow();
|
||||||
}
|
}
|
||||||
return array(
|
$this->addElement(
|
||||||
$this->createElement(
|
|
||||||
'checkbox',
|
'checkbox',
|
||||||
$this->feature,
|
$this->feature,
|
||||||
array(
|
array(
|
||||||
@ -72,8 +71,8 @@ abstract class ToggleFeatureCommandForm extends CommandForm
|
|||||||
'autosubmit' => $this->inline,
|
'autosubmit' => $this->inline,
|
||||||
'value' => $enabled
|
'value' => $enabled
|
||||||
)
|
)
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user