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