From bb3b813ce48f5465b9202461220e14693f1f2464 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 9 Jan 2023 16:49:18 -0700 Subject: [PATCH] Update year range to include years passed This is needed so that if going back to an old time condition see the year it previously had. This provides opportunity to update or remove the old time condition. This provides time to remove the old setting and not confuse it with new years. --- app/time_conditions/time_condition_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index 7e15d34267..acb7460b7a 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -769,7 +769,7 @@ switch (condition_var) { case 'year': //years - for (y = ; y <= ; y++) { + for (y = ; y <= ; y++) { sel_start.options[sel_start.options.length] = new Option(y, y); sel_stop.options[sel_stop.options.length] = new Option(y, y); }