BUG FIXING :
authortipaul <tipaul>
Fri, 25 May 2007 15:14:43 +0000 (15:14 +0000)
committertipaul <tipaul>
Fri, 25 May 2007 15:14:43 +0000 (15:14 +0000)
Serials.pm was not Mysql5 compliant.
(FROM table1, table2 changed to
FROM table1 LEFT JOIN table2 ON....
)

C4/Serials.pm

index 2a54851..f21f3be 100644 (file)
@@ -98,7 +98,8 @@ sub GetSuppliersWithLateIssues {
     my $dbh   = C4::Context->dbh;
     my $query = qq|
         SELECT DISTINCT id, name
-        FROM            subscription, serial
+        FROM            subscription 
+       LEFT JOIN       serial ON serial.subscriptionid=subscription.subscriptionid
         LEFT JOIN       aqbooksellers ON subscription.aqbooksellerid = aqbooksellers.id
         WHERE           subscription.subscriptionid = serial.subscriptionid
         AND             (planneddate < now() OR serial.STATUS = 3 OR serial.STATUS = 4)