Bug 14324: Set "adultborrower" regardless of guarantor status.
authorBarton Chittenden <barton@bywatersolutions.com>
Thu, 18 Jun 2015 20:31:28 +0000 (13:31 -0700)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 23 Jun 2015 13:19:35 +0000 (10:19 -0300)
Signed-off-by: Jason Robb - SEKLS (jrobb@sekls.org)
Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
members/moremember.pl

index d448b91..2dfcc95 100755 (executable)
@@ -191,7 +191,6 @@ if ( $count ) {
         );
     }
     $template->param( guaranteeloop => \@guaranteedata );
-    ( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' || $category_type eq 'I' );
 }
 else {
     if ($data->{'guarantorid'}){
@@ -206,6 +205,8 @@ else {
        }
 }
 
+( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' || $category_type eq 'I' );
+
 my %bor;
 $bor{'borrowernumber'} = $borrowernumber;