Hi, An user of intranet ask me why there is two "E-mail (home):" input in /koha/members/memberentry.pl. After reading the code, only one of the three e-mail adresses asked in this form is saved : " elsif ($newdata{email} =~ /\w\@\w/) { $emailaddr = $newdata{email} } elsif ($newdata{emailpro} =~ /\w\@\w/) { $emailaddr = $newdata{emailpro} } elsif ($newdata{B_email} =~ /\w\@\w/) { $emailaddr = $newdata{B_email} } " Can you tell me why 3 e-mails are asked(with a duplicate input) and only one is saved? Why there is no asked only one e-mail? The member can choose which one he want to give. And there are more than one B_email input in the form (cf : Alternate address). I think it's strange to ask too much informations and keep only a bit. Regards, -- Nahuel ANGELINETTI
After reading the code, only one of the three e-mail adresses asked in this form is saved : " elsif ($newdata{email} =~ /\w\@\w/) { $emailaddr = $newdata{email} } elsif ($newdata{emailpro} =~ /\w\@\w/) { $emailaddr = $newdata{emailpro} } elsif ($newdata{B_email} =~ /\w\@\w/) { $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
participants (2)
-
Nahuel ANGELINETTI -
Owen Leonard