/**
  * (non-PHPDoc)
  * @see \Icinga\Web\Form::onSuccess() For the method documentation.
  */
 public function onSuccess()
 {
     $cmd = new DeleteCommentCommand();
     $cmd->setIsService($this->getElement('comment_is_service')->getValue())->setCommentId($this->getElement('comment_id')->getValue());
     $this->getTransport($this->request)->send($cmd);
     $redirect = $this->getElement('redirect')->getValue();
     if (!empty($redirect)) {
         $this->setRedirectUrl($redirect);
     }
     Notification::success($this->translate('Deleting comment..'));
     return true;
 }