From 6c207a2c2c74248752d0a12447eaf58677381f40 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 --- 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 33492304281..cb139f0f592 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 41f39d9639b..c10926cd36b 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.30.2