From 3f47027a574f936f1f95d0bc1860e47524430e95 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- 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 a8dcd2a5f8..bbca73317d 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.39.5