Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'Bug4257' into ptfs-master2

  • Loading branch information...
commit 8d4b607a4c640d800ed4adeb7904a7c27c2720b6 2 parents a522618 + 65ad3b7
J. David Bavousett ptfs authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 misc/cronjobs/advance_notices.pl
4 misc/cronjobs/advance_notices.pl
@@ -185,7 +185,7 @@ BEGIN
185 185 my $letter_type = 'PREDUE';
186 186 $letter = C4::Letters::getletter( 'circulation', $letter_type );
187 187 die "no letter of type '$letter_type' found. Please see sample_notices.sql" unless $letter;
188   - $sth->execute($upcoming->{'borrowernumber'},$upcoming->{'itemnumber'},$maxdays);
  188 + $sth->execute($upcoming->{'borrowernumber'},$upcoming->{'itemnumber'},$borrower_preferences->{'days_in_advance'});
189 189 my $titles = "";
190 190 while ( my $item_info = $sth->fetchrow_hashref()) {
191 191 my @item_info = map { $_ =~ /^date|date$/ ? format_date($item_info->{$_}) : $item_info->{$_} || '' } @item_content_fields;
@@ -241,7 +241,7 @@ BEGIN
241 241 my $letter_type = 'PREDUEDGST';
242 242 my $letter = C4::Letters::getletter( 'circulation', $letter_type );
243 243 die "no letter of type '$letter_type' found. Please see sample_notices.sql" unless $letter;
244   - $sth->execute($borrowernumber,$maxdays);
  244 + $sth->execute($borrowernumber,$borrower_preferences->{'days_in_advance'});
245 245 my $titles = "";
246 246 while ( my $item_info = $sth->fetchrow_hashref()) {
247 247 my @item_info = map { $_ =~ /^date|date$/ ? format_date($item_info->{$_}) : $item_info->{$_} || '' } @item_content_fields;

0 comments on commit 8d4b607

Please sign in to comment.
Something went wrong with that request. Please try again.