I changed the interface to overdue_notices.pl at the last moment and forgot to
correct one call to it.
This corrects circ/overdue.pl to call misc/cronjobs/overdue_notices.pl with the
correct parameters.
Even better would be to move most of the code from overdue_notices.pl to a
method somewhere
that both of these programs could call. It's inappropriate to call a cronjob
from one of our CGIs.
---
circ/overdue.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/circ/overdue.pl b/circ/overdue.pl
index 6ccfd3c..e8e280f 100755
--- a/circ/overdue.pl
+++ b/circ/overdue.pl
@@ -56,7 +56,7 @@ 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 -b $branchfilter`;
+ my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n -library
$branchfilter`;
print $input->header(-type => 'application/vnd.sun.xml.calc',
-encoding => 'utf-8',
-attachment=>"overdues.csv",
--
1.5.6
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches