> After reading the code, only one of the three e-mail adresses asked in > this form is saved : > " > elsif ($newdata{email} =~ /[EMAIL PROTECTED]/) { > $emailaddr = $newdata{email} > } > elsif ($newdata{emailpro} =~ /[EMAIL PROTECTED]/) { > $emailaddr = $newdata{emailpro} > } > elsif ($newdata{B_email} =~ /[EMAIL PROTECTED]/) { > $emailaddr = $newdata{B_email} > }
The section you quote isn't related to saving any data, it's related to Koha sending an automated email that can be sent to newly registered patrons. That if...elsif block is looking for a valid email address to use. It's true there are three email addresses in the patron entry form, but each is different. At least in the English translation, email is "Home email," emailpro is "Work email," and B_email is the email address under "Alternate address." All are saved successfully to the database in my tests. > And there are more than one B_email input in the form (cf : Alternate > address). I don't find this to be the case. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel