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 <jonathan.druart@koha-community.org>
Signed-off-by: Mason James <mtj@kohaaloha.com>
This commit is contained in:
Jonathan Druart 2015-06-23 10:40:15 +02:00 committed by Mason James
parent 1812e6ab09
commit 7c6c4e3ddf
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;