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

(-)a/Koha/Patrons/Import.pm (-2 / +1 lines)
Lines 158-164 sub import_patrons { Link Here
158
158
159
        # Default date enrolled and date expiry if not already set.
159
        # Default date enrolled and date expiry if not already set.
160
        $borrower{dateenrolled} = $self->today_iso() unless $borrower{dateenrolled};
160
        $borrower{dateenrolled} = $self->today_iso() unless $borrower{dateenrolled};
161
        $borrower{dateexpiry} = GetExpiryDate( $borrower{categorycode}, $borrower{dateenrolled} ) unless $borrower{dateexpiry};
161
        $borrower{dateexpiry} = Koha::Patron::Categories->find( $borrower{categorycode} )->get_expiry_date( $borrower{dateenrolled} ) unless $borrower{dateexpiry};
162
162
163
        my $borrowernumber;
163
        my $borrowernumber;
164
        my $member;
164
        my $member;
165
- 

Return to bug 12598