From bb53a4c474bf8ed3ae5455ad90df866e558833c6 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 --- 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 ab6db3b..7f3b612 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 2dfcc95..6a5adcc 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.1.0