From efdc25bb372c47e708482913abae9fd8499b84fd Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 26 Mar 2018 09:45:13 -0600 Subject: [PATCH] * Calendar - fix occasional infinite loop in yearly planner Something about the events present (or not present) triggered it --- calendar/js/et2_widget_planner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index 0fb78e7ddf..d8903c350c 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -585,7 +585,7 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e var end_key = end.getFullYear() +'-'+end.getMonth(); var year = start.getFullYear(); var month = start.getMonth(); - while(key !== end_key) + while(key <= end_key) { if (++month > 11) {