From 090a88345a0847f8ede6e1963ab44fa7240cd490 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Thu, 30 Oct 2008 10:35:59 +0100 Subject: [PATCH] Fix overdue list if you do not specify a branchcode. Before, if you do not provide a "branchcode" you have an empty csv export. Now, if you have an empty branchcode you have all overdues listed in csv. (I made a typo error in code) Signed-off-by: Galen Charlton --- circ/overdue.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/circ/overdue.pl b/circ/overdue.pl index e8e280fdfe..3797926a27 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -56,7 +56,8 @@ my $dbh = C4::Context->dbh; # download the complete CSV if ($op eq 'csv') { warn "BRANCH : $branchfilter"; - my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n -library $branchfilter`; + my $lib = $branchfilter ? "-library $branchfilter" :''; + my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n $lib`; print $input->header(-type => 'application/vnd.sun.xml.calc', -encoding => 'utf-8', -attachment=>"overdues.csv", -- 2.39.5