]> git.koha-community.org Git - koha.git/commit
Bug 32373: Show patron restriction date
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 15 Feb 2023 15:48:34 +0000 (15:48 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Mar 2023 10:34:13 +0000 (12:34 +0200)
commit561dac93358d74f188f18937daefe7813405b644
treed3ae9e2cac9e57c84751bf63685e680f5b21106c
parent508ad15cb789b4b190f8172fcf58265b8a957a66
Bug 32373: Show patron restriction date

This is a rebased submission following bug 31095 which removed the use of GetDebarments. This patch now uses $patron->restrictions to find the date and pass it to the template

Test plan:
1) Create a restriction on a patron and navigate to that patron in Checkouts or the patron details page
2) There should be a message with details about the restriction but the creation date of the restriction won't be included in the message
3) Apply patch
4) The message should now say "Restricted since DATE" as in the screenshot attached.
5) Change the 'dateformat' syspref and refresh, the date should change to reflect the syspref

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc
members/moremember.pl