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 |
- |
|
|