Skip to content

Commit

Permalink
Ipl-html SelectElement: Use options attr instead of multiOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed May 24, 2023
1 parent cd6f8e8 commit 48d7597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function assembleElements()
'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')
] : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function assembleElements()
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')
Expand Down

0 comments on commit 48d7597

Please sign in to comment.