Ipl-html SelectElement: Use options attr instead of multiOptions

This commit is contained in:
Sukhwinder Dhillon 2022-11-08 15:35:40 +01:00 committed by Johannes Meyer
parent cd6f8e87ff
commit f818356ec6
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ class ProcessCheckResultForm extends CommandForm
'required' => true,
'label' => t('Status'),
'description' => t('The state this check result should report'),
'multiOptions' => $object instanceof Host ? [
'options' => $object instanceof Host ? [
ProcessCheckResultCommand::HOST_UP => t('UP', 'icinga.state'),
ProcessCheckResultCommand::HOST_DOWN => t('DOWN', 'icinga.state')
] : [

View file

@ -77,7 +77,7 @@ class ScheduleHostDowntimeForm extends ScheduleServiceDowntimeForm
array(
'description' => t('Schedule child downtimes.'),
'label' => t('Child Options'),
'multiOptions' => [
'options' => [
0 => t('Do nothing with child hosts'),
1 => t('Schedule triggered downtime for all child hosts'),
2 => t('Schedule non-triggered downtime for all child hosts')