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

Srdjan srdjan at catalyst.net.nz
Tue Mar 29 01:12:56 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Uh, definitely not, sorry. Removing immediately.

On 29/03/11 03:00, Mike Hafen wrote:
> 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 <mailto:srdjan at catalyst.net.nz>> wrote:
>
> diff --git a/misc/cronjobs/advance_notices.pl
> <http://advance_notices.pl> b/misc/cronjobs/advance_notices.pl
> <http://advance_notices.pl>
> index 6a408e4..eb5071a 100755
> --- a/misc/cronjobs/advance_notices.pl <http://advance_notices.pl>
> +++ b/misc/cronjobs/advance_notices.pl <http://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
> <mailto: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/
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2RFfgACgkQX6p/D9UE7dwd5gCghxL3aBms7No7Zr1RIiFwrgkG
ADsAnjYTbiD8I5JypL4KI4l+81vNAzS3
=G0cn
-----END PGP SIGNATURE-----



More information about the Koha-patches mailing list