From dfb1be231d57f94c67458a1d124d9b54ddd4cbea Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 12 Feb 2014 16:17:58 +0000 Subject: [PATCH] Fix TypeError: Cannot read property 'view' of undefined when clicking on some calendar favorites --- calendar/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index fa9312dc27..1f29124c4e 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -1080,7 +1080,7 @@ app.classes.calendar = AppJS.extend( // old calendar state handling on server-side (incl. switching to and from listview) var menuaction = 'calendar.calendar_uiviews.index'; - if (typeof state.state != 'undefined' && state.state.view == 'undefined' || state.state.view == 'listview') + if (typeof state.state != 'undefined' && (state.state.view == 'undefined' || state.state.view == 'listview')) { // check if we already use et2 / are in listview if (this.et2 || etemplate2 && etemplate2.getByApplication('calendar'))