[FIX] web_planner: don't crash when restoring on a deleted page

This commit is contained in:
Simon Lejeune
2015-09-07 11:37:06 +02:00
parent 367cacfc7e
commit 9f985c98ea
@@ -148,7 +148,7 @@ var PlannerDialog = Widget.extend({
last_open_page = this.planner.data.last_open_page || false;
}
if (last_open_page) {
if (last_open_page && this._find_page_by_id(last_open_page)) {
this._display_page(last_open_page);
} else {
this._display_page(this.pages[0].id);