[Koha-bugs] [Bug 6835] Ability to specify types of email address in overdue_notices.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 13 11:46:02 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6835

--- Comment #31 from Matthias Meusburger <matthias.meusburger at biblibre.com> ---
1) 
push @emails_to_use, $email if ($email ne '');

I also added line 497/498:
push @emails_to_use, $memberinfos->{$_}
                              if ($memberinfos->{$_} ne '');


2) It does work, but you're right, it's messy:
-                        $email = 1 if (@emails_to_use);

-                    if ( ( !$email || $nomail ) && $PrintNoticesMaxLines && $j
>= $PrintNoticesMaxLines ) {
+                    if ( ( scalar(@emails_to_use) == 0 || $nomail ) &&
$PrintNoticesMaxLines && $j >= $PrintNoticesMaxLines ) {

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list