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) {
|
||||
$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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue