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

(-)a/Koha/Patron.pm (-2 / +1 lines)
Lines 106-112 sub fixup_cardnumber { Link Here
106
        select => \'CAST(cardnumber AS SIGNED)',
106
        select => \'CAST(cardnumber AS SIGNED)',
107
        as => ['cast_cardnumber']
107
        as => ['cast_cardnumber']
108
    })->_resultset->get_column('cast_cardnumber')->max;
108
    })->_resultset->get_column('cast_cardnumber')->max;
109
    $self->cardnumber($max+1);
109
    $self->cardnumber(($max || 0) +1);
110
}
110
}
111
111
112
# trim whitespace from data which has some non-whitespace in it.
112
# trim whitespace from data which has some non-whitespace in it.
113
- 

Return to bug 20287