diff --git a/modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php b/modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php index 6bc691f26..06e1b35ee 100644 --- a/modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/SendCustomNotificationCommandForm.php @@ -59,8 +59,11 @@ class SendCustomNotificationCommandForm extends ObjectsCommandForm . ' whether or not notifications are enabled.' ) ) - ), - array( + ) + )); + + if (! $this->getBackend()->isIcinga2()) { + $this->addElement( 'checkbox', 'broadcast', array( @@ -70,8 +73,9 @@ class SendCustomNotificationCommandForm extends ObjectsCommandForm 'If you check this option, the notification is sent out to all normal and escalated contacts.' ) ) - ) - )); + ); + } + return $this; }