Bug 14324: Set "adultborrower" regardless of guarantor status.
authorBarton Chittenden <barton@bywatersolutions.com>
Thu, 18 Jun 2015 20:31:28 +0000 (13:31 -0700)
committerMason James <mtj@kohaaloha.com>
Sat, 25 Jul 2015 13:20:13 +0000 (01:20 +1200)
Signed-off-by: Jason Robb - SEKLS (jrobb@sekls.org)

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Mason James <mtj@kohaaloha.com>

members/moremember.pl

index 01a529c..ec36c05 100755 (executable)
@@ -185,7 +185,6 @@ if ( $category_type eq 'A' || $category_type eq 'I') {
         );
     }
     $template->param( guaranteeloop => \@guaranteedata );
-    ( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' || $category_type eq 'I' );
 }
 else {
     if ($data->{'guarantorid'}){
@@ -200,6 +199,8 @@ else {
        }
 }
 
+( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' || $category_type eq 'I' );
+
 my %bor;
 $bor{'borrowernumber'} = $borrowernumber;