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

(-)a/members/memberentry.pl (-2 / +1 lines)
Lines 372-378 if ($op eq 'save' || $op eq 'insert'){ Link Here
372
if ( ($op eq 'modify' || $op eq 'insert' || $op eq 'save'|| $op eq 'duplicate') and ($step == 0 or $step == 3 )){
372
if ( ($op eq 'modify' || $op eq 'insert' || $op eq 'save'|| $op eq 'duplicate') and ($step == 0 or $step == 3 )){
373
    unless ($newdata{'dateexpiry'}){
373
    unless ($newdata{'dateexpiry'}){
374
        my $patron_category = Koha::Patron::Categories->find( $newdata{categorycode} );
374
        my $patron_category = Koha::Patron::Categories->find( $newdata{categorycode} );
375
        $newdata{'dateexpiry'} = $patron_category->get_expiry_date( $newdata{dateenrolled} );
375
        $newdata{'dateexpiry'} = $patron_category->get_expiry_date( $newdata{dateenrolled} ) if $patron_category;
376
    }
376
    }
377
}
377
}
378
378
379
- 

Return to bug 17307