From b4dbd0ca7b5454f49980299b42f20781a2f5bb5e Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sat, 28 Sep 2024 17:28:19 -0500 Subject: [PATCH] Update the start index of the for loop. Previously the open date was never acted on, and so the for loop started at one which skipped the open date. Now it needs to be acted on. --- htdocs/js/DatePicker/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/js/DatePicker/datepicker.js b/htdocs/js/DatePicker/datepicker.js index dca96fb2d8..eb469bb30f 100644 --- a/htdocs/js/DatePicker/datepicker.js +++ b/htdocs/js/DatePicker/datepicker.js @@ -55,7 +55,7 @@ groupRules[activeIndex][0]?.parentNode._flatpickr.selectedDates[0]?.getTime() || groupRules[activeIndex][1]; - for (let i = 1; i < groupRules.length; ++i) { + for (let i = 0; i < groupRules.length; ++i) { if (i == activeFieldDate) continue; const thisFieldDate = groupRules[i][0]?.parentNode._flatpickr.selectedDates[0]?.getTime() || groupRules[i][1];