Disable broadcast option for send custom notification if backend is Icinga 2

This commit is contained in:
Eric Lippmann 2016-09-01 10:51:04 +02:00
parent 8c079d1db8
commit 18d2084924
1 changed files with 8 additions and 4 deletions

View File

@ -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;
}