Fix send custom notification command form if backend is Icinga 2

This commit is contained in:
Eric Lippmann 2016-09-08 15:49:39 +02:00
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(