From 0ec31c88228807ecf18bd4bc4dfd242957b5abf9 Mon Sep 17 00:00:00 2001 From: Axay Javiya Date: Tue, 26 Sep 2017 14:53:15 +0530 Subject: [PATCH] [FIX] web: fix kanban progressbar active filter When the user clicks on a color in the progress bar, it is supposed to highlight the column in this color and the records that correspond to this color. This works perfectly. However, when all the records are moved (or their color is changed), the filter was staying active, while it should not be active anymore, since basically the user could not have clicked on the color in the progressbar in the current state of the kanban view since no records are in this state anymore. --- .../web/static/src/js/views/kanban/kanban_column_progressbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views/kanban/kanban_column_progressbar.js b/addons/web/static/src/js/views/kanban/kanban_column_progressbar.js index 721e300da7b..ac368d5a1c9 100644 --- a/addons/web/static/src/js/views/kanban/kanban_column_progressbar.js +++ b/addons/web/static/src/js/views/kanban/kanban_column_progressbar.js @@ -89,7 +89,7 @@ var KanbanColumnProgressBar = Widget.extend({ var subgroupCounts = {}; _.each(self.colors, function (val, key) { var subgroupCount = columnState.progressBarValues.counts[key] || 0; - if (self.activeFilter === val && subgroupCount === 0) { + if (self.activeFilter === key && subgroupCount === 0) { self.activeFilter = false; } subgroupCounts[key] = subgroupCount;