Bug 11168: fix regression that broke exporting serial claims to CSV
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 30 Oct 2013 11:33:15 +0000 (12:33 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 31 Oct 2013 16:10:48 +0000 (16:10 +0000)
Bug 7688 broke the exporting serial claims as CSV (see bug 10854).

For C4::Serials::GetLateOrMissingIssues(), $supplierid is not
meant to be mandatory.  This patch fixes that.

Test plan:
try to export a serial claim.
Without this patch, the csv is always empty.

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

index 5256b13..6d188e7 100644 (file)
@@ -1979,7 +1979,7 @@ name,title,planneddate,serialseq,serial.subscriptionid from tables : subscriptio
 sub GetLateOrMissingIssues {
     my ( $supplierid, $serialid, $order ) = @_;
 
-    return unless ($supplierid);
+    return unless ( $supplierid or $serialid );
 
     my $dbh = C4::Context->dbh;
     my $sth;