I think that you probably don't want that 'die ...' in there. On Tue, Mar 22, 2011 at 12:08 AM, Srdjan Jankovic <srd...@catalyst.net.nz>wrote:
> diff --git a/misc/cronjobs/advance_notices.pl b/misc/cronjobs/ > advance_notices.pl > index 6a408e4..eb5071a 100755 > --- a/misc/cronjobs/advance_notices.pl > +++ b/misc/cronjobs/advance_notices.pl > > [snip] > @@ -135,10 +132,15 @@ SELECT biblio.*, items.*, issues.* > AND (TO_DAYS(date_due)-TO_DAYS(NOW()) = ?) > END_SQL > > +my $admin_adress = C4::Context->preference('KohaAdminEmailAddress'); > + > UPCOMINGITEM: foreach my $upcoming ( @$upcoming_dues ) { > warn 'examining ' . $upcoming->{'itemnumber'} . ' upcoming due items' > if $verbose; > # warn( Data::Dumper->Dump( [ $upcoming ], [ 'overdue' ] ) ); > > + my $from_address = $upcoming->{branchemail} || $admin_adress; > + die Dumper($upcoming); > + > my $letter; > my $borrower_preferences; > if ( 0 == $upcoming->{'days_until_due'} ) { > > [snip] > -- > 1.6.5 > > _______________________________________________ > Koha-patches mailing list > Koha-patches@lists.koha-community.org > http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches > website : http://www.koha-community.org/ > git : http://git.koha-community.org/ > bugs : http://bugs.koha-community.org/ >
_______________________________________________ Koha-patches mailing list Koha-patches@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/