[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.
This commit is contained in:
committed by
David Monjoie
parent
51db88a653
commit
0ec31c8822
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user