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

(-)a/C4/Circulation.pm (-11 lines)
Lines 2124-2139 sub AddReturn { Link Here
2124
            if C4::Context->preference("ReturnLog");
2124
            if C4::Context->preference("ReturnLog");
2125
        }
2125
        }
2126
2126
2127
    # Remove any OVERDUES related debarment if the borrower has no overdues
2128
    if ( $borrowernumber
2129
      && $patron->debarred
2130
      && C4::Context->preference('AutoRemoveOverduesRestrictions')
2131
      && !Koha::Patrons->find( $borrowernumber )->has_overdues
2132
      && @{ GetDebarments({ borrowernumber => $borrowernumber, type => 'OVERDUES' }) }
2133
    ) {
2134
        DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' });
2135
    }
2136
2137
    # Check if this item belongs to a biblio record that is attached to an
2127
    # Check if this item belongs to a biblio record that is attached to an
2138
    # ILL request, if it is we need to update the ILL request's status
2128
    # ILL request, if it is we need to update the ILL request's status
2139
    if (C4::Context->preference('CirculateILL')) {
2129
    if (C4::Context->preference('CirculateILL')) {
2140
- 

Return to bug 24413