Bug 10845: (follow-up) update how a test case counts print hold available notices

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Galen Charlton 2014-05-02 19:01:37 +00:00
parent c4abafce33
commit 6b1c114cc6

View file

@ -399,7 +399,10 @@ $dbh->rollback;
sub count_hold_print_messages {
my $message_count = $dbh->selectall_arrayref(q{
SELECT COUNT(*) FROM message_queue WHERE letter_code = 'HOLD_PRINT'
SELECT COUNT(*)
FROM message_queue
WHERE letter_code = 'HOLD'
AND message_transport_type = 'print'
});
return $message_count->[0]->[0];
}