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

(-)a/Koha/Calendar.pm (-1 / +1 lines)
Lines 104-110 sub single_holidays { Link Here
104
    #   ...
104
    #   ...
105
    # }
105
    # }
106
106
107
    unless ($single_holidays) {
107
    if (!$single_holidays || $ENV{NO_CACHE}) {
108
        my $dbh = C4::Context->dbh;
108
        my $dbh = C4::Context->dbh;
109
        $single_holidays = {};
109
        $single_holidays = {};
110
110
(-)a/t/db_dependent/HoldsQueue.t (-1 / +2 lines)
Lines 296-301 ok( $holds_queue->[1]->{cardnumber} eq 'CARDNUMBER2', "Holds queue filling 2nd c Link Here
296
# and make today a holiday for MPL. When we run it again we should only
296
# and make today a holiday for MPL. When we run it again we should only
297
# have 1 row in the holds queue
297
# have 1 row in the holds queue
298
C4::Context->set_preference('HoldsQueueSkipClosed', 1);
298
C4::Context->set_preference('HoldsQueueSkipClosed', 1);
299
$ENV{NO_CACHE} = 1;
299
my $today = dt_from_string();
300
my $today = dt_from_string();
300
C4::Calendar->new( branchcode => 'MPL' )->insert_single_holiday(
301
C4::Calendar->new( branchcode => 'MPL' )->insert_single_holiday(
301
    day         => $today->day(),
302
    day         => $today->day(),
Lines 324-329 C4::Context->set_preference( 'HoldsQueueSkipClosed', 1 ); Link Here
324
C4::HoldsQueue::CreateQueue();
325
C4::HoldsQueue::CreateQueue();
325
$holds_queue = $dbh->selectall_arrayref("SELECT * FROM tmp_holdsqueue", { Slice => {} });
326
$holds_queue = $dbh->selectall_arrayref("SELECT * FROM tmp_holdsqueue", { Slice => {} });
326
is( scalar( @$holds_queue ), 2, "Holds not filled with items from closed libraries" );
327
is( scalar( @$holds_queue ), 2, "Holds not filled with items from closed libraries" );
328
$ENV{NO_CACHE} = 0;
327
329
328
# Bug 14297
330
# Bug 14297
329
$borrowernumber = AddMember(%data);
331
$borrowernumber = AddMember(%data);
330
- 

Return to bug 12803