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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2297-2303 sub _debar_user_on_return { Link Here
2297
2297
2298
            my $new_debar_dt;
2298
            my $new_debar_dt;
2299
            # Use the calendar or not to calculate the debarment date
2299
            # Use the calendar or not to calculate the debarment date
2300
            if ( C4::Context->preference('finesCalendar') eq 'noFinesWhenClosed' ) {
2300
            if ( C4::Context->preference('SuspensionsCalendar') eq 'noSuspensionsWhenClosed' ) {
2301
                my $calendar = Koha::Calendar->new(
2301
                my $calendar = Koha::Calendar->new(
2302
                    branchcode => $branchcode,
2302
                    branchcode => $branchcode,
2303
                    days_mode  => 'Calendar'
2303
                    days_mode  => 'Calendar'
(-)a/t/db_dependent/Circulation.t (-1 / +1 lines)
Lines 1854-1859 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
1854
    $rule->suspension_chargeperiod(1)->store;
1854
    $rule->suspension_chargeperiod(1)->store;
1855
    $rule->firstremind(0)->store;
1855
    $rule->firstremind(0)->store;
1856
    t::lib::Mocks::mock_preference('finesCalendar', 'noFinesWhenClosed');
1856
    t::lib::Mocks::mock_preference('finesCalendar', 'noFinesWhenClosed');
1857
    t::lib::Mocks::mock_preference('SuspensionsCalendar', 'noSuspensionsWhenClosed');
1857
1858
1858
    # Adding a holiday 2 days ago
1859
    # Adding a holiday 2 days ago
1859
    my $calendar = C4::Calendar->new(branchcode => $library->{branchcode});
1860
    my $calendar = C4::Calendar->new(branchcode => $library->{branchcode});
1860
- 

Return to bug 13958