From 9dde1fddd0438131f8ae2bce156c2819fbee9c89 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 (cherry picked from commit 768701bf1d07cb02f14c75091aa83573bab4959c) Signed-off-by: Lucas Gass --- 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 ee59f98951..14223e9c59 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -302,7 +302,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 07770ac855..98b78548cc 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