NotificationController: fix method signature
This commit is contained in:
parent
7e13a9a4f2
commit
058bcb083d
|
@ -15,10 +15,12 @@ class NotificationController extends ObjectController
|
|||
$this->assertPermission('director/notifications');
|
||||
}
|
||||
|
||||
// TODO: KILL IT
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
// TODO: Check if this is still needed, remove it otherwise
|
||||
/** @var \Icinga\Web\Widget\Tab $tab */
|
||||
if ($this->object && $this->object->object_type === 'apply') {
|
||||
if ($host = $this->params->get('host')) {
|
||||
foreach ($this->getTabs()->getTabs() as $tab) {
|
||||
|
@ -37,8 +39,12 @@ class NotificationController extends ObjectController
|
|||
/**
|
||||
* @param DirectorObjectForm $form
|
||||
*/
|
||||
protected function onObjectFormLoaded($form)
|
||||
protected function onObjectFormLoaded(DirectorObjectForm $form)
|
||||
{
|
||||
if (! $this->object) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->object->isTemplate()) {
|
||||
$form->setListUrl('director/notifications/templates');
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue