mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
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.'
|
. ' whether or not notifications are enabled.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
)
|
||||||
array(
|
));
|
||||||
|
|
||||||
|
if (! $this->getBackend()->isIcinga2()) {
|
||||||
|
$this->addElement(
|
||||||
'checkbox',
|
'checkbox',
|
||||||
'broadcast',
|
'broadcast',
|
||||||
array(
|
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.'
|
'If you check this option, the notification is sent out to all normal and escalated contacts.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
);
|
||||||
));
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user