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 297-302 ok( $holds_queue->[1]->{cardnumber} eq 'CARDNUMBER2', "Holds queue filling 2nd c Link Here
297
# and make today a holiday for MPL. When we run it again we should only
297
# and make today a holiday for MPL. When we run it again we should only
298
# have 1 row in the holds queue
298
# have 1 row in the holds queue
299
C4::Context->set_preference('HoldsQueueSkipClosed', 1);
299
C4::Context->set_preference('HoldsQueueSkipClosed', 1);
300
$ENV{NO_CACHE} = 1;
300
my $today = dt_from_string();
301
my $today = dt_from_string();
301
C4::Calendar->new( branchcode => 'MPL' )->insert_single_holiday(
302
C4::Calendar->new( branchcode => 'MPL' )->insert_single_holiday(
302
    day         => $today->day(),
303
    day         => $today->day(),
Lines 325-330 C4::Context->set_preference( 'HoldsQueueSkipClosed', 1 ); Link Here
325
C4::HoldsQueue::CreateQueue();
326
C4::HoldsQueue::CreateQueue();
326
$holds_queue = $dbh->selectall_arrayref("SELECT * FROM tmp_holdsqueue", { Slice => {} });
327
$holds_queue = $dbh->selectall_arrayref("SELECT * FROM tmp_holdsqueue", { Slice => {} });
327
is( scalar( @$holds_queue ), 2, "Holds not filled with items from closed libraries" );
328
is( scalar( @$holds_queue ), 2, "Holds not filled with items from closed libraries" );
329
$ENV{NO_CACHE} = 0;
328
330
329
# Bug 14297
331
# Bug 14297
330
$borrowernumber = AddMember(%data);
332
$borrowernumber = AddMember(%data);
331
- 

Return to bug 12803