show/activitylog: fix tab activation defaults

This commit is contained in:
Thomas Gelf 2015-11-09 14:02:50 +01:00
parent 42f05e0009
commit 180b3384ed
1 changed files with 3 additions and 3 deletions

View File

@ -32,11 +32,11 @@ class ShowController extends ActionController
));
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(
'label' => $this->translate('Former object'),
'url' => 'director/show/activitylog',
@ -44,7 +44,7 @@ class ShowController extends ActionController
));
if ($this->defaultTab === null) {
$this->defaultTab = 'diff';
$this->defaultTab = 'old';
}
}