Coding guidelines and cleanup

This commit is contained in:
Matthias Jentsch 2015-05-07 16:37:35 +02:00
parent 7cf2cb034e
commit 1fa550838d
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,6 @@
use Icinga\Module\Monitoring\Controller; use Icinga\Module\Monitoring\Controller;
use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentsCommandForm; use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentsCommandForm;
use Icinga\Web\Url; use Icinga\Web\Url;
use Icinga\Web\Widget\Tabextension\DashboardAction;
use Icinga\Data\Filter\Filter; use Icinga\Data\Filter\Filter;
/** /**
@ -81,6 +80,7 @@ class Monitoring_CommentsController extends Controller
public function removeAllAction() public function removeAllAction()
{ {
$this->assertPermission('monitoring/command/comment/delete'); $this->assertPermission('monitoring/command/comment/delete');
$this->view->comments = $this->comments; $this->view->comments = $this->comments;
$this->view->listAllLink = Url::fromPath('monitoring/list/comments') $this->view->listAllLink = Url::fromPath('monitoring/list/comments')
->setQueryString($this->filter->toQueryString()); ->setQueryString($this->filter->toQueryString());

View File

@ -38,9 +38,7 @@ class DeleteDowntimesCommandForm extends CommandForm
array( array(
'hidden', 'hidden',
'redirect', 'redirect',
array( array('decorators' => array('ViewHelper'))
'decorators' => array('ViewHelper')
)
) )
)); ));
return $this; return $this;