Disable broadcast option for send custom notification if backend is Icinga 2
This commit is contained in:
parent
8c079d1db8
commit
18d2084924
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue