From 8edf973e0788b8cf28d4aefbdc600181acc9e124 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 3 Nov 2022 18:00:08 +0100 Subject: [PATCH] Bug 32030: (follow-up) Fix date handling - conflicts with bug 30718 Fix "Filter by expired" returns 400 when no date provided Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue index 6e4c819b7c..cf7f9ce4b0 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue @@ -121,6 +121,8 @@ export default { if (this.filters.by_expired) { if (!this.filters.max_expiration_date) this.filters.max_expiration_date = new Date() + .toISOString() + .substring(0, 10) } $("#" + this.table_id) .DataTable() -- 2.39.5