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 311-316 is( $holds_queue->[1]->{cardnumber}, $borrower2->{cardnumber}, "Holds queue fill Link Here
311
# and make today a holiday for MPL. When we run it again we should only
311
# and make today a holiday for MPL. When we run it again we should only
312
# have 1 row in the holds queue
312
# have 1 row in the holds queue
313
C4::Context->set_preference('HoldsQueueSkipClosed', 1);
313
C4::Context->set_preference('HoldsQueueSkipClosed', 1);
314
$ENV{NO_CACHE} = 1;
314
my $today = dt_from_string();
315
my $today = dt_from_string();
315
C4::Calendar->new( branchcode => 'MPL' )->insert_single_holiday(
316
C4::Calendar->new( branchcode => 'MPL' )->insert_single_holiday(
316
    day         => $today->day(),
317
    day         => $today->day(),
Lines 339-344 C4::Context->set_preference( 'HoldsQueueSkipClosed', 1 ); Link Here
339
C4::HoldsQueue::CreateQueue();
340
C4::HoldsQueue::CreateQueue();
340
$holds_queue = $dbh->selectall_arrayref("SELECT * FROM tmp_holdsqueue", { Slice => {} });
341
$holds_queue = $dbh->selectall_arrayref("SELECT * FROM tmp_holdsqueue", { Slice => {} });
341
is( scalar( @$holds_queue ), 2, "Holds not filled with items from closed libraries" );
342
is( scalar( @$holds_queue ), 2, "Holds not filled with items from closed libraries" );
343
$ENV{NO_CACHE} = 0;
342
344
343
# Bug 14297
345
# Bug 14297
344
$itemtype = $item_types[0]->{itemtype};
346
$itemtype = $item_types[0]->{itemtype};
345
- 

Return to bug 12803