From 52356dcd30249e6f0166805187afa1da385a073e Mon Sep 17 00:00:00 2001 From: Daniel Sweeney Date: Mon, 9 Mar 2009 16:44:36 -0500 Subject: [PATCH] Fixed a typo that kept branches out of the Advance Notice and Item Due notifications. Signed-off-by: Galen Charlton --- misc/cronjobs/advance_notices.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/cronjobs/advance_notices.pl b/misc/cronjobs/advance_notices.pl index 6877cdb18b..4daf2e308b 100755 --- a/misc/cronjobs/advance_notices.pl +++ b/misc/cronjobs/advance_notices.pl @@ -141,7 +141,7 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { $letter = parse_letter( { letter => $letter, borrowernumber => $upcoming->{'borrowernumber'}, - branchchode => $upcoming->{'branchcode'}, + branchcode => $upcoming->{'branchcode'}, biblionumber => $biblio->{'biblionumber'} } ); } } else { @@ -150,7 +150,7 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { # warn( Data::Dumper->Dump( [ $borrower_preferences ], [ 'borrower_preferences' ] ) ); next UPCOMINGITEM unless $borrower_preferences && exists $borrower_preferences->{'days_in_advance'}; next UPCOMINGITEM unless $borrower_preferences->{'days_in_advance'} == $upcoming->{'days_until_due'}; - + if ( $borrower_preferences->{'wants_digest'} ) { # cache this one to process after we've run through all of the items. $upcoming_digest->{$upcoming->{'borrowernumber'}}++; @@ -162,7 +162,7 @@ UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { $letter = parse_letter( { letter => $letter, borrowernumber => $upcoming->{'borrowernumber'}, - branchchode => $upcoming->{'branchcode'}, + branchcode => $upcoming->{'branchcode'}, biblionumber => $biblio->{'biblionumber'} } ); } } -- 2.39.5