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

--- Comment #41 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 209574
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209574&action=edit
Bug 42383: (QA follow-up) Format restriction and return dates on the check-in
page

This patch fixes the remaining dates on the check-in page that did not
follow the dateformat syspref:
- The "Patron is now restricted" and "Patron was earlier restricted"
  messages now include the restriction end date, formatted with $date()
  as the legacy page did with $KohaDates. They used to omit the date.
- The "Return date" badge shown while the options panel is collapsed
  displayed the raw ISO date (2026-10-10). It is now formatted.

Test plan:
1. Apply patch and rebuild:
   $ ktd --shell
  k$ yarn js:build && restart_all
2. Set the 'Suspension in days' circulation rule to 1 and check out an
   overdue item to a patron (e.g. backdate the checkout)
3. Go to Circulation > Check in and check the item in
=> SUCCESS: "Patron is now restricted until <date>." uses the
   dateformat syspref
4. Check in another overdue item of the same patron
=> SUCCESS: "Reminder: Patron was earlier restricted until <date>."
   uses the dateformat syspref
5. Enable SpecifyReturnDate, open the check-in settings, pick a return
   date and collapse the settings
=> SUCCESS: The "Return date" badge uses the dateformat syspref
6. Sign off :-D

Assisted-by: Opus 5.5 (Anthropic)
Signed-off-by: Brendan Lawlor <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to