mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Fix send custom notification command form if backend is Icinga 2
This commit is contained in:
parent
067de6b7f4
commit
33506b2965
@ -91,8 +91,10 @@ class SendCustomNotificationCommandForm extends ObjectsCommandForm
|
||||
->setObject($object)
|
||||
->setComment($this->getElement('comment')->getValue())
|
||||
->setAuthor($this->request->getUser()->getUsername())
|
||||
->setForced($this->getElement('forced')->isChecked())
|
||||
->setBroadcast($this->getElement('broadcast')->isChecked());
|
||||
->setForced($this->getElement('forced')->isChecked());
|
||||
if (($broadcast = $this->getElement('broadcast')) !== null) {
|
||||
$notification->setBroadcast($broadcast->isChecked());
|
||||
}
|
||||
$this->getTransport($this->request)->send($notification);
|
||||
}
|
||||
Notification::success($this->translatePlural(
|
||||
|
Loading…
x
Reference in New Issue
Block a user