From: Jonathan Druart Date: Wed, 30 Oct 2013 11:33:15 +0000 (+0100) Subject: Bug 11168: fix regression that broke exporting serial claims to CSV X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=6e3e1eed4829f1b11e571e2c77a8b37f66af943d;ds=sidebyside Bug 11168: fix regression that broke exporting serial claims to CSV 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 --- diff --git a/C4/Serials.pm b/C4/Serials.pm index 5256b13ff8..6d188e7685 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -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;