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 <jmf@liblime.com>
This commit is contained in:
Andrew Moore 2008-07-10 08:06:48 -05:00 committed by Joshua Ferraro
parent 6bb77ae3e4
commit f2c3c027bd
1 changed files with 1 additions and 1 deletions

View File

@ -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",