From 768701bf1d07cb02f14c75091aa83573bab4959c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 1 Apr 2024 12:53:01 +0000 Subject: [PATCH] Bug 36376: (QA follow-up) Tidy Signed-off-by: Katrin Fischer (cherry picked from commit 2e6a4a555b73f653e7245bad88973d17ceea5dc6) Signed-off-by: Fridolin Somers --- circ/circulation.pl | 4 +++- members/moremember.pl | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index c82a96889e..c7d42bb708 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -306,7 +306,9 @@ if ($patron) { $template->param( age_high => $patron->category->upperagelimit ); } - unless ( Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) { + unless ( + Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) + { $template->param( limited_category => 1 ); } } diff --git a/members/moremember.pl b/members/moremember.pl index e7545499b7..1c6f8e7c20 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -138,7 +138,8 @@ $template->param( csrf_token => Koha::Token->new->generate_csrf({ session_id => $input->cookie('CGISESSID'),}), ); -unless ( Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) { +unless ( Koha::Patron::Categories->search_with_library_limits( { 'me.categorycode' => $patron->categorycode } )->count ) +{ $template->param( limited_category => 1 ); } -- 2.39.5