[FIX] fix a crash in sub kanban views

sub kanban views is sometimes initialized without a $buttons attribute in options.  In that case, it should just ignore it.
This commit is contained in:
Géry Debongnie
2014-10-21 09:33:52 +02:00
parent f563b2a119
commit 4151f0fd83
+1 -1
View File
@@ -43,7 +43,7 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
this.currently_dragging = {};
this.limit = options.limit || 40;
this.add_group_mutex = new $.Mutex();
if (!this.options.$buttons.length) {
if (!this.options.$buttons || !this.options.$buttons.length) {
this.options.$buttons = false;
}
},