[FIX] board: edit an event

if parent of the search view is destroyed, the title is undefined.

opw:644769, 646575
This commit is contained in:
Goffin Simon
2015-08-05 13:57:29 +02:00
committed by Nicolas Martinelli
parent e4a93776b3
commit 28ff2e9585
+1 -1
View File
@@ -331,7 +331,7 @@ instance.web.search.FavoriteMenu.include({
this.$add_dashboard_btn = $add_to_dashboard.eq(2).find('button');
this.$add_dashboard_input = $add_to_dashboard.eq(1).find('input');
this.$add_dashboard_link = $add_to_dashboard.first();
var title = this.searchview.getParent().title;
var title = this.searchview.getParent() && this.searchview.getParent().title;
this.$add_dashboard_input.val(title);
this.$add_dashboard_link.click(function () {
self.toggle_dashboard_menu();