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.
This commit is contained in:
FusionPBX
2023-01-09 16:49:18 -07:00
committed by GitHub
parent d796eee8a0
commit bb3b813ce4

View File

@@ -769,7 +769,7 @@
switch (condition_var) {
case 'year': //years
for (y = <?php echo date('Y')?>; y <= <?php echo (date('Y') + 10)?>; y++) {
for (y = <?php echo (date('Y') - 5) ?>; y <= <?php echo (date('Y') + 10)?>; y++) {
sel_start.options[sel_start.options.length] = new Option(y, y);
sel_stop.options[sel_stop.options.length] = new Option(y, y);
}