From 2e6a4a555b73f653e7245bad88973d17ceea5dc6 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 --- 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 3349230428..cb139f0f59 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -307,7 +307,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 41f39d9639..c10926cd36 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -133,7 +133,8 @@ if ( !$patron->is_valid_age ) { $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 ); } -- 2.39.5