Bug 4507 Don't return null vendor to claims processing
authorColin Campbell <colin.campbell@ptfs-europe.com>
Fri, 14 May 2010 16:24:13 +0000 (17:24 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 19 May 2010 04:55:36 +0000 (16:55 +1200)
The empty vendor created by the select if any subscriptions
have no associated vendor generates a 'wrong-looking' display
and selecting it gives no options

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Serials.pm

index bca9fc8..f8a9bf5 100644 (file)
@@ -96,7 +96,7 @@ sub GetSuppliersWithLateIssues {
     FROM            subscription
     LEFT JOIN       serial ON serial.subscriptionid=subscription.subscriptionid
     LEFT JOIN aqbooksellers ON subscription.aqbooksellerid = aqbooksellers.id
-    WHERE  (planneddate < now() OR serial.STATUS = 3 OR serial.STATUS = 4) ORDER BY name|;
+    WHERE id > 0 AND (planneddate < now() OR serial.STATUS = 3 OR serial.STATUS = 4) ORDER BY name|;
     return $dbh->selectall_arrayref($query, { Slice => {} });
 }