From 256e5bd23a5b6f792fc35381413ef948b24e1dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 19 Aug 2015 15:32:50 +0200 Subject: [PATCH] [FIX] web_kanban: correctly sets id in some cases for some fields, the value is an array with the value and a description. In that case, we need to only take the value in account to set the id of the group. --- addons/web_kanban/static/src/js/kanban_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_kanban/static/src/js/kanban_view.js b/addons/web_kanban/static/src/js/kanban_view.js index 15e0512bcef..b2f3f55c10a 100644 --- a/addons/web_kanban/static/src/js/kanban_view.js +++ b/addons/web_kanban/static/src/js/kanban_view.js @@ -215,7 +215,7 @@ var KanbanView = View.extend({ } else { _.each(groups, function (group) { var value = group.attributes.value; - group.id = value; + group.id = value instanceof Array ? value[0] : value; var field = self.fields_view.fields[self.group_by_field]; if (field && field.type === "selection") { value= _.find(field.selection, function (s) { return s[0] === group.attributes.value; });