Bugzilla – Attachment 11497 Details for
Bug 8607
overdue_notices is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8607: FIX overdues_notices script: $date is not replaced
0001-Bug-8607-FIX-overdues_notices-script-date-is-not-rep.patch (text/plain), 1.68 KB, created by
Jonathan Druart
on 2012-08-09 13:41:34 UTC
(
hide
)
Description:
Bug 8607: FIX overdues_notices script: $date is not replaced
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-08-09 13:41:34 UTC
Size:
1.68 KB
patch
obsolete
>From b8dbcdc493f83c3c5cd7c270624e4513ec4b00fe Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 9 Aug 2012 15:40:53 +0200 >Subject: [PATCH 1/1] Bug 8607: FIX overdues_notices script: $date is not > replaced > >The script is unusable. >The variable $date is not replaced with its content. >--- > misc/cronjobs/overdue_notices.pl | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index 8c0bc12..1243add 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -388,7 +388,7 @@ foreach my $branchcode (@branches) { > > $verbose and warn sprintf "branchcode : '%s' using %s\n", $branchcode, $admin_email_address; > >- my $sth2 = $dbh->prepare( <<'END_SQL' ); >+ my $sth2 = $dbh->prepare( <<"END_SQL" ); > SELECT biblio.*, items.*, issues.*, biblioitems.itemtype, TO_DAYS($date)-TO_DAYS(date_due) AS days_overdue > FROM issues,items,biblio, biblioitems > WHERE items.itemnumber=issues.itemnumber >@@ -455,10 +455,10 @@ END_SQL > } > $borrower_sql .= ' AND categories.overduenoticerequired=1 '; > if($triggered) { >- $borrower_sql .= ' AND TO_DAYS($date)-TO_DAYS(date_due) = ?'; >+ $borrower_sql .= " AND TO_DAYS($date)-TO_DAYS(date_due) = ?"; > push @borrower_parameters, $mindays; > } else { >- $borrower_sql .= ' AND TO_DAYS($date)-TO_DAYS(date_due) BETWEEN ? and ? ' ; >+ $borrower_sql .= " AND TO_DAYS($date)-TO_DAYS(date_due) BETWEEN ? and ? " ; > push @borrower_parameters, $mindays, $maxdays; > } > >-- >1.7.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8607
:
11497
|
11561