From 5cbe2f7c0f63add1f2bfc53115a468f3b16369e6 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Oct 2018 15:22:13 +0200 Subject: [PATCH] Fix tag autocomplete and Tags category in the drive --- www/common/proxy-manager.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index b35e6c742..f035c96b5 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -584,12 +584,14 @@ define([ }; var getTagsList = function (Env) { - var list = []; + var list = {}; var userObjects = _getUserObjects(Env); userObjects.forEach(function (uo) { - Array.prototype.push.apply(list, uo.getTagsList()); + var l = uo.getTagsList(); + Object.keys(l).forEach(function (t) { + list[t] = list[t] ? (list[t] + l[t]) : l[t]; + }); }); - list = Util.deduplicateString(list); return list; };