PDA

View Full Version : Custom profile fields prevents registration


legalbaykus
12-05-2009, 11:08 PM
Hi everybody, I'm from Turkey
I added new custom profile field with folloving settings:
Title = surname,
Single line text,
Field Required= No but display at registration,
Regular Expression = ^[a-zA-]+\s{1}[a-zA-]+$

My problem is Regexp prevents registration process even "Field Required" = No...
Is there a solution for this situation ?
Thanks

--------------- Added 1260139769 at 1260139769 ---------------

I though that this is a bug
I searched class files found dm_user class is related custom fields.
Found this line // text box / text area
I move $regex_check = true; value from the end of this section to the beginning of same section.
(After the first if)
Then I add "if" phrase to the end of this section.
if (($profilefield['required'] == 0 OR $profilefield['required'] == 2) AND $value === false AND $verify)
{
$regex_check = false;
}

Now it works.

If really it was a bug, so here is the solution :D
Wait for fix...