[Koha-devel] Problem in /koha/members/memberentry.pl?

Owen Leonard oleonard at myacpl.org
Thu Oct 9 19:10:23 CEST 2008


> 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



More information about the Koha-devel mailing list