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

(-)a/C4/Circulation.pm (-2 / +1 lines)
Lines 796-802 sub CanBookBeIssued { Link Here
796
    my $circ_library = Koha::Libraries->find( _GetCircControlBranch($item_unblessed, $patron_unblessed) );
796
    my $circ_library = Koha::Libraries->find( _GetCircControlBranch($item_unblessed, $patron_unblessed) );
797
797
798
    my $now = dt_from_string();
798
    my $now = dt_from_string();
799
    $duedate ||= CalcDateDue( $now->clone(), $effective_itemtype, $circ_library->branchcode, $patron_unblessed );
799
    $duedate ||= CalcDateDue( $now, $effective_itemtype, $circ_library->branchcode, $patron_unblessed );
800
    if (DateTime->compare($duedate,$now) == -1 ) { # duedate cannot be before now
800
    if (DateTime->compare($duedate,$now) == -1 ) { # duedate cannot be before now
801
         $needsconfirmation{INVALID_DATE} = output_pref($duedate);
801
         $needsconfirmation{INVALID_DATE} = output_pref($duedate);
802
    }
802
    }
803
- 

Return to bug 30947