mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-10-31 03:14:31 +01:00 
			
		
		
		
	Enable propagate host downtime commands for Icinga 2 >= 2.6.0 and Icinga 1.x
fixes #10774
This commit is contained in:
		
							parent
							
								
									8f9920f1fc
								
							
						
					
					
						commit
						7dc4d3d63e
					
				| @ -33,22 +33,26 @@ class ScheduleHostDowntimeCommandForm extends ScheduleServiceDowntimeCommandForm | |||||||
|             ) |             ) | ||||||
|         ); |         ); | ||||||
| 
 | 
 | ||||||
|         $this->addElement( |         if (! $this->getBackend()->isIcinga2() | ||||||
|             'select', |             || version_compare($this->getBackend()->getProgramVersion(), '2.6.0', '>=') | ||||||
|             'child_hosts', |         ) { | ||||||
|             array( |             $this->addElement( | ||||||
|                 'description' => $this->translate( |                 'select', | ||||||
|                     'Define what should be done with the child hosts of the hosts.' |                 'child_hosts', | ||||||
|                 ), |                 array( | ||||||
|                 'label'        => $this->translate('Child Hosts'), |                     'description' => $this->translate( | ||||||
|                 'multiOptions' => array( |                         'Define what should be done with the child hosts of the hosts.' | ||||||
|                     0 => $this->translate('Do nothing with child hosts'), |                     ), | ||||||
|                     1 => $this->translate('Schedule triggered downtime for all child hosts'), |                     'label'        => $this->translate('Child Hosts'), | ||||||
|                     2 => $this->translate('Schedule non-triggered downtime for all child hosts') |                     'multiOptions' => array( | ||||||
|                 ), |                         0 => $this->translate('Do nothing with child hosts'), | ||||||
|                 'value'         => 0 |                         1 => $this->translate('Schedule triggered downtime for all child hosts'), | ||||||
|             ) |                         2 => $this->translate('Schedule non-triggered downtime for all child hosts') | ||||||
|         ); |                     ), | ||||||
|  |                     'value'         => 0 | ||||||
|  |                 ) | ||||||
|  |             ); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         return $this; |         return $this; | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user