Bug 14324: Display "Add Child" for Organisations on circ/circulation.pl
authorJonathan Druart <jonathan.druart@koha-community.org>
Tue, 23 Jun 2015 08:40:15 +0000 (10:40 +0200)
committerMason James <mtj@kohaaloha.com>
Sat, 25 Jul 2015 13:20:14 +0000 (01:20 +1200)
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>

circ/circulation.pl
members/moremember.pl

index 8ee1396..4133373 100755 (executable)
@@ -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;
index ec36c05..b6e3041 100755 (executable)
@@ -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;