From ce24ec1bdd785ba312e64ac98a11c0f62a458aee Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 17 Apr 2019 11:58:40 +0200 Subject: [PATCH] Fix bug where newly added element in tag cloud was not clickable (in Tasks/Notes) --- plugins/kolab_tags/kolab_tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kolab_tags/kolab_tags.js b/plugins/kolab_tags/kolab_tags.js index df2f6df3..e999b177 100644 --- a/plugins/kolab_tags/kolab_tags.js +++ b/plugins/kolab_tags/kolab_tags.js @@ -434,7 +434,7 @@ function tag_form_save() // ajax response handler function update_tags(response) { - var list = rcmail.message_list; + var list = main_list_widget(); // reset tag selector popup tag_selector_reset(); @@ -513,7 +513,7 @@ function update_tags(response) rcmail.enable_command('reset-tags', tagsfilter.length && list); // update Mark menu in case some messages are already selected - if (list && list.selection.length) { + if (list && list.selection && list.selection.length) { message_list_select(list); }