From 36bd68842f13714638a1ed8aa93bef0672685d38 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 16 Feb 2018 10:57:15 +0000 Subject: [PATCH] Bug 18789: (QA follow-up) Use is_child in circulation.pl Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 1b2652190b..7414378d41 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -557,7 +557,7 @@ $amountold =~ s/^.*\$//; # remove upto the $, if any my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber ); -if ( $patron && $patron->category->category_type eq 'C') { +if ( $patron && $patron->is_child) { my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; $template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; -- 2.20.1