mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
show/activitylog: fix tab activation defaults
This commit is contained in:
parent
42f05e0009
commit
180b3384ed
@ -32,11 +32,11 @@ class ShowController extends ActionController
|
|||||||
));
|
));
|
||||||
|
|
||||||
if ($this->defaultTab === null) {
|
if ($this->defaultTab === null) {
|
||||||
$this->defaultTab = 'diff';
|
$this->defaultTab = 'new';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($entry->action_name, array('create', 'modify'))) {
|
if (in_array($entry->action_name, array('delete', 'modify'))) {
|
||||||
$tabs->add('old', array(
|
$tabs->add('old', array(
|
||||||
'label' => $this->translate('Former object'),
|
'label' => $this->translate('Former object'),
|
||||||
'url' => 'director/show/activitylog',
|
'url' => 'director/show/activitylog',
|
||||||
@ -44,7 +44,7 @@ class ShowController extends ActionController
|
|||||||
));
|
));
|
||||||
|
|
||||||
if ($this->defaultTab === null) {
|
if ($this->defaultTab === null) {
|
||||||
$this->defaultTab = 'diff';
|
$this->defaultTab = 'old';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user