From ccfca43d93b6607ed086213ae33c741234af48b3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 23 Jun 2015 10:40:15 +0200 Subject: [PATCH] Bug 14324: Display "Add Child" for Organisations on circ/circulation.pl On moremember, the button is displayed for Organisations. To be consistent, it should be displayed on the circulation page too. Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 198e6669eeb68519b4909d99631d84aed068845e) Signed-off-by: Chris Cormack --- circ/circulation.pl | 4 ++-- members/moremember.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index ab6db3b208..7f3b61236f 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -420,8 +420,8 @@ if ($borrowernumber) { } } $template->param( WaitingReserveLoop => \@WaitingReserveLoop ); - $template->param( adultborrower => 1 ) - if ( $borrower->{'category_type'} eq 'A' ); + + $template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' ); } #title diff --git a/members/moremember.pl b/members/moremember.pl index 2dfcc9509c..6a5adcccd6 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -205,7 +205,7 @@ else { } } -( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' || $category_type eq 'I' ); +$template->param( adultborrower => 1 ) if ( $category_type eq 'A' || $category_type eq 'I' ); my %bor; $bor{'borrowernumber'} = $borrowernumber; -- 2.39.5