From ace036d6c8b0a21cecfac7526e2b1b3d97d726a6 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 15 May 2019 16:22:17 +0200 Subject: [PATCH] Fix regression where tags were not available in Add a Note dialog (Bifrost#T209710) --- plugins/kolab_tags/lib/kolab_tags_engine.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/kolab_tags/lib/kolab_tags_engine.php b/plugins/kolab_tags/lib/kolab_tags_engine.php index 49a37fbf..1c45040f 100644 --- a/plugins/kolab_tags/lib/kolab_tags_engine.php +++ b/plugins/kolab_tags/lib/kolab_tags_engine.php @@ -46,12 +46,7 @@ class kolab_tags_engine */ public function ui() { - // set templates of Files UI and widgets - if ($this->rc->task != 'mail') { - return; - } - - if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview'))) { + if ($this->rc->action && !in_array($this->rc->action, array('show', 'preview', 'dialog-ui'))) { return; } @@ -62,7 +57,7 @@ class kolab_tags_engine $this->rc->output->add_label('cancel', 'save'); $this->plugin->add_label('tags', 'add', 'edit', 'delete', 'saving', 'nameempty', 'nameexists', 'colorinvalid', 'untag', 'tagname', - 'tagcolor', 'tagsearchnew', 'newtag'); + 'tagcolor', 'tagsearchnew', 'newtag', 'notags'); $this->rc->output->add_handlers(array( 'plugin.taglist' => array($this, 'taglist'),