[Koha-bugs] [Bug 7371] AutoEmailPrimaryAddress set to 'OFF' in new installs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 12 07:50:22 CEST 2012


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |katrin.fischer at bsz-bw.de
           Assignee|gmcharlt at gmail.com          |katrin.fischer at bsz-bw.de

--- Comment #2 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Hi Nicole, 

I checked this bug and it seems that OFF is mapping to 'first valid' which
makes the default setting like you wanted it :)

     -
         - "Use"
         - pref: AutoEmailPrimaryAddress
           default: "OFF"
           choices:
               email: home
               emailpro: work
               B_email: alternate
               "OFF": first valid
         - "patron email address for sending out emails."
     -

This also matches the code:
 909         if ($which_address eq 'OFF') {
 910             $to_address = GetFirstValidEmailAddress(
$message->{'borrowernumber'} );

But there is one option 'cardnumber' that is not reflected in the pref file and
can not be selected. I am going to add it.

INSERT INTO `systempreferences` VALUES
('AutoEmailPrimaryAddress','OFF','email|emailpro|B_email|cardnumber|OFF','Defines
the default email address where Account Details emails are sent.','Choice')"

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


More information about the Koha-bugs mailing list