[FIX] web_kanban: prevent crash when grouping some fields

The kanban view was changed recently to display the tooltips in column
headers.  Sadly, it appears that the developer forgot to take into
account the case when there are on tooltips.  This commit fixes this
unfortunate oversight.
This commit is contained in:
Géry Debongnie
2015-07-02 14:53:31 +02:00
parent 3bb35d68b6
commit 25a5b15b36
@@ -60,9 +60,13 @@ var KanbanColumn = Widget.extend({
});
var self = this;
this.tooltip_info = _.map(group_data.options.group_by_tooltip, function (key, value, list) {
return (self.values && self.values[value] && "<div>" +key + "<br>" + self.values[value] + "</div>") || '';
}).join('');
if (group_data.options && group_data.options.group_by_tooltip) {
this.tooltip_info = _.map(group_data.options.group_by_tooltip, function (key, value, list) {
return (self.values && self.values[value] && "<div>" +key + "<br>" + self.values[value] + "</div>") || '';
}).join('');
} else {
this.tooltip_info = "";
}
},
start: function() {