Coding guidelines and cleanup
This commit is contained in:
parent
7cf2cb034e
commit
1fa550838d
|
@ -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());
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue