From a4df86965e1c57ce2272d572b3c6505df5c54017 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 --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 1b26521..7414378 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.1.4