From f2c3c027bd055c38d06feaaacb9f610ca2ae9aa5 Mon Sep 17 00:00:00 2001 From: Andrew Moore Date: Thu, 10 Jul 2008 08:06:48 -0500 Subject: [PATCH] bug 2274: correcting call to new interface of overdue_notices.pl 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. Signed-off-by: Joshua Ferraro --- circ/overdue.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/overdue.pl b/circ/overdue.pl index 6ccfd3cd20..e8e280fdfe 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", -- 2.39.5