Fix regression where Tasks button could be skipped e.g. in Settings UI
This commit is contained in:
parent
dbc63628ac
commit
7b4e9856b7
1 changed files with 4 additions and 4 deletions
|
@ -44,10 +44,6 @@ class tasklist_ui
|
|||
return;
|
||||
}
|
||||
|
||||
if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview', 'print', 'index'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
// add taskbar button
|
||||
$this->plugin->add_button(array(
|
||||
'command' => 'tasks',
|
||||
|
@ -57,6 +53,10 @@ class tasklist_ui
|
|||
'label' => 'tasklist.navtitle',
|
||||
), 'taskbar');
|
||||
|
||||
if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview', 'print', 'index'))) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->plugin->include_stylesheet($this->plugin->local_skin_path() . '/tasklist.css');
|
||||
|
||||
if ($this->rc->task == 'mail' || $this->rc->task == 'tasks') {
|
||||
|
|
Loading…
Add table
Reference in a new issue