@@ -, +, @@ granularity - Apply this patches - updatedatabase - Run: $ kshell k$ prove t/db_dependent/Circulation.t - Sign off :-D --- C4/Circulation.pm | 2 +- t/db_dependent/Circulation.t | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2281,7 +2281,7 @@ sub _debar_user_on_return { my $new_debar_dt; # Use the calendar or not to calculate the debarment date - if ( C4::Context->preference('finesCalendar') eq 'noFinesWhenClosed' ) { + if ( C4::Context->preference('SuspensionsCalendar') eq 'noSuspensionsWhenClosed' ) { my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => 'Calendar' --- a/t/db_dependent/Circulation.t +++ a/t/db_dependent/Circulation.t @@ -1850,6 +1850,7 @@ subtest 'AddReturn + suspension_chargeperiod' => sub { $rule->suspension_chargeperiod(1)->store; $rule->firstremind(0)->store; t::lib::Mocks::mock_preference('finesCalendar', 'noFinesWhenClosed'); + t::lib::Mocks::mock_preference('SuspensionsCalendar', 'noSuspensionsWhenClosed'); # Adding a holiday 2 days ago my $calendar = C4::Calendar->new(branchcode => $library->{branchcode}); --