[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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user