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

(-)a/installer/onboarding.pl (-2 / +1 lines)
Lines 264-270 elsif ( $step && $step == 3 ) { Link Here
264
264
265
#Incrementing the highest existing patron cardnumber to prevent duplicate cardnumber entry
265
#Incrementing the highest existing patron cardnumber to prevent duplicate cardnumber entry
266
266
267
    my $existing_cardnumber = $schema->resultset('Borrower')->get_column('cardnumber')->max();
267
    my $existing_cardnumber = $schema->resultset('Borrower')->get_column('cardnumber')->max() // 0;
268
268
269
    my $new_cardnumber = $existing_cardnumber + 1;
269
    my $new_cardnumber = $existing_cardnumber + 1;
270
    $template->param( "newcardnumber" => $new_cardnumber );
270
    $template->param( "newcardnumber" => $new_cardnumber );
271
- 

Return to bug 17855