From 15b3b05346601da424baa510723f0e08497c6368 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 95ffa0b74c..56a34b6af4 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -417,8 +417,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' ); } my @values; diff --git a/members/moremember.pl b/members/moremember.pl index 74c8d51ab1..b5fb256c7e 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