monitoring: Don't require the child_hosts parameter when scheduling host downtimes

refs #9606
This commit is contained in:
Eric Lippmann 2015-08-20 15:54:03 +02:00
parent d8f866c2bc
commit f27f1097ca

View File

@ -25,26 +25,27 @@ class ScheduleHostDowntimeCommandForm extends ScheduleServiceDowntimeCommandForm
'checkbox', 'checkbox',
'all_services', 'all_services',
array( array(
'label' => $this->translate('All Services'),
'description' => $this->translate( 'description' => $this->translate(
'Schedule downtime for all services on the hosts and the hosts themselves.' 'Schedule downtime for all services on the hosts and the hosts themselves.'
) ),
'label' => $this->translate('All Services'),
'value' => false
) )
), ),
array( array(
'select', 'select',
'child_hosts', 'child_hosts',
array( array(
'description' => $this->translate(
'Define what should be done with the child hosts of the hosts.'
),
'label' => $this->translate('Child Hosts'), 'label' => $this->translate('Child Hosts'),
'required' => true,
'multiOptions' => array( 'multiOptions' => array(
0 => $this->translate('Do nothing with child hosts'), 0 => $this->translate('Do nothing with child hosts'),
1 => $this->translate('Schedule triggered downtime for all child hosts'), 1 => $this->translate('Schedule triggered downtime for all child hosts'),
2 => $this->translate('Schedule non-triggered downtime for all child hosts') 2 => $this->translate('Schedule non-triggered downtime for all child hosts')
), ),
'description' => $this->translate( 'value' => 0
'Define what should be done with the child hosts of the hosts.'
)
) )
) )
)); ));