From 878e943d0542329f84bc339795f0000d0051bcdc Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 14 Apr 2022 12:39:05 +0000 Subject: [PATCH] Bug 30508: Do not display OPAC message about block from holds when OPACHoldRequests is disabled This patch adds a check for the OPACHoldRequests to determine whether a message should be shown to patrons whose account is over the maxoutstanding limit. To test, apply the patch and set the "maxoutstanding" system preference to a low value. Set OPACHoldRequests to "Allow." - Log in to the OPAC as a patron who has outstanding fines or charges which exceed the maxoutstanding value you set. - You should see a message on the "Your summary" page, "Holds are blocked because your fine balance is over the limit." - Set OPACHoldRequests to "Don't allow" and refresh the "Your summary" page in the OPAC. The message should disappear. Signed-off-by: Amit Gupta --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 45f1432659..4b319bd13f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -71,7 +71,7 @@ [% END %] - [% IF ( borrower.blockedonfines ) %] + [% IF ( borrower.blockedonfines && Koha.Preference('OPACHoldRequests') ) %]
Please note: Your account has outstanding fees & charges of [% amountoutstanding | $Price %]. Holds are blocked because your fine balance is over the limit.
-- 2.25.1