From 7c6c4e3ddf2bd10f11c002bdd4048e47bf4eb45e 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: Mason James --- 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 8ee1396121..413337347b 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -387,8 +387,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 ec36c052f4..b6e3041a35 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -199,7 +199,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