CMS MADE SIMPLE FORGE

Self Registration

 

[#2486] selfregistration 1.2.1 : validation of email even if optional - patch provided

avatar
Created By: Thierry RAMORASOAVINA (ramora_t)
Date Submitted: Fri Sep 05 13:32:35 -0400 2008

Assigned To:
Version: None
CMSMS Version: None
Severity: None
Resolution: None
State: Open
Summary:
selfregistration 1.2.1 : validation of email even if optional - patch provided
Detailed Description:
If you declare a email property and don't fill it in the form,
the module raises an error on the field even if the property is optional.

Here is my own patch :

file action.reguser.php (line 90)
replace 
if( $arr[1] == '2' )
by 
if( $arr[1] == '2' && ($required == 2||strlen($params['input_'.$propname]) > 0)
) // email field

Hope it helps


History