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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2281-2287 sub _debar_user_on_return { Link Here
2281
2281
2282
            my $new_debar_dt;
2282
            my $new_debar_dt;
2283
            # Use the calendar or not to calculate the debarment date
2283
            # Use the calendar or not to calculate the debarment date
2284
            if ( C4::Context->preference('finesCalendar') eq 'noFinesWhenClosed' ) {
2284
            if ( C4::Context->preference('SuspensionsCalendar') eq 'noSuspensionsWhenClosed' ) {
2285
                my $calendar = Koha::Calendar->new(
2285
                my $calendar = Koha::Calendar->new(
2286
                    branchcode => $branchcode,
2286
                    branchcode => $branchcode,
2287
                    days_mode  => 'Calendar'
2287
                    days_mode  => 'Calendar'
(-)a/t/db_dependent/Circulation.t (-1 / +1 lines)
Lines 1850-1855 subtest 'AddReturn + suspension_chargeperiod' => sub { Link Here
1850
    $rule->suspension_chargeperiod(1)->store;
1850
    $rule->suspension_chargeperiod(1)->store;
1851
    $rule->firstremind(0)->store;
1851
    $rule->firstremind(0)->store;
1852
    t::lib::Mocks::mock_preference('finesCalendar', 'noFinesWhenClosed');
1852
    t::lib::Mocks::mock_preference('finesCalendar', 'noFinesWhenClosed');
1853
    t::lib::Mocks::mock_preference('SuspensionsCalendar', 'noSuspensionsWhenClosed');
1853
1854
1854
    # Adding a holiday 2 days ago
1855
    # Adding a holiday 2 days ago
1855
    my $calendar = C4::Calendar->new(branchcode => $library->{branchcode});
1856
    my $calendar = C4::Calendar->new(branchcode => $library->{branchcode});
1856
- 

Return to bug 13958