[Koha-patches] [PATCH] Fix overdue list if you do not specify a branchcode.

Nahuel Angelinetti nahuel.angelinetti at biblibre.com
Thu Oct 30 10:33:43 CET 2008


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.
---
 circ/overdue.pl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/circ/overdue.pl b/circ/overdue.pl
index e8e280f..3634a11 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",
-- 
1.5.6.3




More information about the Koha-patches mailing list