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\Forms\Command\Object\DeleteCommentsCommandForm;
|
||||
use Icinga\Web\Url;
|
||||
use Icinga\Web\Widget\Tabextension\DashboardAction;
|
||||
use Icinga\Data\Filter\Filter;
|
||||
|
||||
/**
|
||||
|
@ -81,6 +80,7 @@ class Monitoring_CommentsController extends Controller
|
|||
public function removeAllAction()
|
||||
{
|
||||
$this->assertPermission('monitoring/command/comment/delete');
|
||||
|
||||
$this->view->comments = $this->comments;
|
||||
$this->view->listAllLink = Url::fromPath('monitoring/list/comments')
|
||||
->setQueryString($this->filter->toQueryString());
|
||||
|
|
|
@ -38,9 +38,7 @@ class DeleteDowntimesCommandForm extends CommandForm
|
|||
array(
|
||||
'hidden',
|
||||
'redirect',
|
||||
array(
|
||||
'decorators' => array('ViewHelper')
|
||||
)
|
||||
array('decorators' => array('ViewHelper'))
|
||||
)
|
||||
));
|
||||
return $this;
|
||||
|
|
Loading…
Reference in New Issue