View | Details | Raw Unified | Return to bug 26558
Collapse All | Expand All

(-)a/members/memberentry.pl (-14 / +13 lines)
Lines 250-268 if ( ( $op eq 'insert' ) and !$nodouble ) { Link Here
250
    if ( $patrons->count > 0) {
250
    if ( $patrons->count > 0) {
251
        $nodouble = 0;
251
        $nodouble = 0;
252
        $check_member = $patrons->next->borrowernumber;
252
        $check_member = $patrons->next->borrowernumber;
253
254
255
        my @new_guarantors;
256
        my @new_guarantor_id           = $input->multi_param('new_guarantor_id');
257
        my @new_guarantor_relationship = $input->multi_param('new_guarantor_relationship');
258
        foreach my $gid ( @new_guarantor_id ) {
259
            my $patron = Koha::Patrons->find( $gid );
260
            my $relationship = shift( @new_guarantor_relationship );
261
            next unless $patron;
262
            my $g = { patron => $patron, relationship => $relationship };
263
            push( @new_guarantors, $g );
264
        }
265
        $template->param( new_guarantors => \@new_guarantors );
266
    }
253
    }
267
}
254
}
268
255
Lines 713-718 if ($nok) { Link Here
713
        $template->param($error) || $template->param( $error => 1);
700
        $template->param($error) || $template->param( $error => 1);
714
    }
701
    }
715
    $template->param(nok => 1);
702
    $template->param(nok => 1);
703
704
    #Prevent losing guarantor data if error occurs
705
    my @new_guarantors;
706
    my @new_guarantor_id           = $input->multi_param('new_guarantor_id');
707
    my @new_guarantor_relationship = $input->multi_param('new_guarantor_relationship');
708
    foreach my $gid ( @new_guarantor_id ) {
709
        my $patron = Koha::Patrons->find( $gid );
710
        my $relationship = shift( @new_guarantor_relationship );
711
        next unless $patron;
712
        my $g = { patron => $patron, relationship => $relationship };
713
        push( @new_guarantors, $g );
714
    }
715
    $template->param( new_guarantors => \@new_guarantors );
716
}
716
}
717
  
717
  
718
  #Formatting data for display    
718
  #Formatting data for display    
719
- 

Return to bug 26558