From ac089393148377d1451fa6ad8c1105d60b10dca3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 10 Dec 2015 22:55:28 +0000 Subject: [PATCH] Use the right variable to avoid breaking the whole app --- 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 ff0d8b86b6..09f863ca3f 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -1842,7 +1842,7 @@ app.classes.calendar = AppJS.extend( } } var value = [{start_date: state.state.first, end_date: state.state.last}]; - if(_view !== 'listview') this._need_data(value,state.state); + if(state.state.view !== 'listview') this._need_data(value,state.state); } // Include first & last dates in state, mostly for server side processing if(state.state.first && state.state.first.toJSON) state.state.first = state.state.first.toJSON();