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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview', 'print', 'index'))) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// add taskbar button
|
// add taskbar button
|
||||||
$this->plugin->add_button(array(
|
$this->plugin->add_button(array(
|
||||||
'command' => 'tasks',
|
'command' => 'tasks',
|
||||||
|
@ -57,6 +53,10 @@ class tasklist_ui
|
||||||
'label' => 'tasklist.navtitle',
|
'label' => 'tasklist.navtitle',
|
||||||
), 'taskbar');
|
), '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');
|
$this->plugin->include_stylesheet($this->plugin->local_skin_path() . '/tasklist.css');
|
||||||
|
|
||||||
if ($this->rc->task == 'mail' || $this->rc->task == 'tasks') {
|
if ($this->rc->task == 'mail' || $this->rc->task == 'tasks') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue