Bug 36494: Flatpickr error on checkout page if the patron is blocked from checking out
authorOwen Leonard <oleonard@myacpl.org>
Tue, 2 Apr 2024 17:03:21 +0000 (17:03 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 22 May 2024 14:10:20 +0000 (16:10 +0200)
commit9334fe9392230218061ea5958186b7928138a563
tree3637e76ade627f909d9673a836258f6116a3326e
parent9dbc2737e1073794c653cb7b605d6be142d64996
Bug 36494: Flatpickr error on checkout page if the patron is blocked from checking out

This patch add some error-handling to the recent change to
circulation.tt where we handle dates and on-site checkouts. This
prevents an error in the console when the patron is blocked and the
"specify due date" field is hidden.

To test, apply the patch and make sure OnSiteCheckouts is enabled.

- Go to Circulation and check out to a patron.
- Under the restrictions tab, add a manual restriction.
- When the page reloads and the checkout form is no longer visible,
  confirm that there is no error in the browser console.

Confirm that the Bug 18885 test plan still works.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit cc15deb0011fe2e816428451e442a10f144974e1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt