[FIX] web_kanban: crash on project kanban loading if a task in in undefined stage

kanban_normal cannot be loaded on the js side because 'Undefined' is not a stage,
which was leading to an rpc call with null id
This commit is contained in:
Yannick Tivisse
2015-09-03 13:11:19 +02:00
parent e404528c15
commit a10ae1bfb8
@@ -114,7 +114,7 @@ var KanbanSelection = AbstractField.extend({
var leg_opt = self.options && self.options.states_legend || null;
if (leg_opt) {
var key = leg_opt[value.name];
var legend = self.parent.group_info[key];
var legend = self.parent.group_info && self.parent.group_info[key];
if (legend) {
value.state_name = legend;
value.tooltip = legend;