From 85135e6790bc7bb3f665a0f9f0b4d2065a2c2105 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 25 Nov 2015 16:05:36 +0000 Subject: [PATCH] Deal with planner days set as string instead of int --- calendar/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index 1da1c246fe..20edfecc6c 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3242,6 +3242,10 @@ jQuery.extend(app.classes.calendar,{ }, end_date: function(state) { var d = app.calendar.View.end_date.call(this, state); + if(state.planner_days) + { + state.planner_days = parseInt(state.planner_days); + } if(state.sortby && state.sortby === 'month') { d.setUTCDate(0);