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

(-)a/installer/data/mysql/updatedatabase.pl (-2 / +1 lines)
Lines 14374-14380 if( CheckVersion( $DBversion ) ) { Link Here
14374
14374
14375
        my $expirationdate = dt_from_string($hold->{waitingdate});
14375
        my $expirationdate = dt_from_string($hold->{waitingdate});
14376
        if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) {
14376
        if ( C4::Context->preference("ExcludeHolidaysFromMaxPickUpDelay") ) {
14377
            my $calendar = Koha::Calendar->new( branchcode => $hold->{branchcode} );
14377
            my $calendar = Koha::Calendar->new( branchcode => $hold->{branchcode}, days_mode => C4::Context->preference('useDaysMode') );
14378
            $expirationdate = $calendar->days_forward( $expirationdate, $max_pickup_delay );
14378
            $expirationdate = $calendar->days_forward( $expirationdate, $max_pickup_delay );
14379
        } else {
14379
        } else {
14380
            $expirationdate->add( days => $max_pickup_delay );
14380
            $expirationdate->add( days => $max_pickup_delay );
14381
- 

Return to bug 24159