[Koha-patches] [PATCH] wr77490 (bug 5929): use branch email in preference for due notices

Mike Hafen mdhafen at tech.washk12.org
Mon Mar 28 19:00:56 CEST 2011


I think that you probably don't want that 'die ...' in there.

On Tue, Mar 22, 2011 at 12:08 AM, Srdjan Jankovic <srdjan at 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 at 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/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20110328/07aef929/attachment-0001.htm>


More information about the Koha-patches mailing list