[Koha-bugs] [Bug 35341] Circulation rule dates are being overwritten

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 12 08:36:41 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35341

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #160844|0                           |1
        is obsolete|                            |
 Attachment #160850|0                           |1
        is obsolete|                            |

--- Comment #42 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 160896
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160896&action=edit
Bug 35341: Improve processing hard due date and auto renewal date

After quite a struggle, came up with this approach using
flatpickr's parseDate and setDate. Seems to be the best.
The dateformat variable is set in calendar.inc.

Test plan:
Test edit, save, clear rules, focus on both dates.
Toggle all I18N preference date formats.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

Bug 35341: Do not reinstantiate flatpickr

We do not need to reinstantiate flatpickr, we need to retrieve the
existing instance.

Test plan:
See previous patch.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
12-01-2024 Squashed both patches. Removed the unused hidden inputs for
hardduedatecompare and added a data attribute for the duedate.
The check with is_valid_date seems no longer needed here. Normally
date is empty or valid. A js warning from parseDate should be
exceptional. Made code for both dates a bit more consistent.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list