From 17c32d31227846429ae667cd5ffec5d1e950faad Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 8 Oct 2026 20:16:50 +0200 Subject: [PATCH] fix: refresh cashups and items tables on filter and date range change (#4731) * fix(cashups,items): sync date globals from picker on Apply Address CodeRabbit review on #4731: when a page loads with restored GET dates the globals are overwritten after the picker initializes, so applying an unchanged range (which skips the picker change callback) refreshed the table with the stale globals instead of the visible range. Add a shared apply.daterangepicker handler in the daterangepicker partial that copies the picker range into start_date/end_date; it binds before page-level handlers so refreshes and URL updates use the visible range. * style(views): remove redundant comments in daterangepicker --- app/Views/cashups/manage.php | 8 ++++++++ app/Views/items/manage.php | 15 +++++++++++++++ app/Views/partial/daterangepicker.php | 8 ++++++++ 3 files changed, 31 insertions(+) diff --git a/app/Views/cashups/manage.php b/app/Views/cashups/manage.php index 1d53ec20a..b5863c624 100644 --- a/app/Views/cashups/manage.php +++ b/app/Views/cashups/manage.php @@ -14,9 +14,17 @@