From 326949de90cce1c5eb1126eb40de14487c1acab3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 6 May 2022 13:31:31 +0000 Subject: [PATCH] Bug 30706: Fix space in check for dateformat preference This patch fixes the calendar.inc includes in both staff and OPAC in order to remove a typo: An extra space in the check for the "dateformat" system preference. The result of this error is that changes to the dateformat system preference will not be correctly applied to Koha without a restart. To reproduce the problem start the process of creating a new patron. - In the date of birth field, select a date. The format of the date inserted should match your current dateformat system preference. - Go to Administration -> System preferences and update dateformat to something different. - Go back to the patron creation form (refresh it if necessary). - The hint under the Date of birth field will match your updated system preference, but when you pick a date using the calendar widget it will still be formatted according to the old value of dateformat. To test the fix, apply the patch and run through the same steps above. A change the dateformat preference should be immediately reflected in the functionality of the calendar widget. --- koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index 549d046cd7..47a3f76ec2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -5,7 +5,7 @@ [% FILTER collapse %]