Afternoon,
Not sure if this is a bug or not. I've updated my Fuel to one of the most recent versions and now in one of my modules in Fuel, when I submit a form with an email field it's validating with "Please enter in a valid email address".
This is good, except the email address is valid.
Where in the code do I look to see where it's accepting the validation?
The email address is passed on after on_before_validation() but doesn't arrive at on_before_save() without the validation error.
Any ideas?
Thanks,
Chris.
Comments
public $auto_validate_fields = array( 'email|email_address' => 'valid_email', 'phone|phone_number' => 'valid_phone' );
I also looked for a duplicate 'email' field, I found one that had 'email' in it, but wasn't relevant.
I was just trying to dig into the code to find out where it was coming up with the error between on_before_validate and on_before_save.
How can I have both then?
I tried specifying $auto_validate_fields = array('email' => 'valid_email'); but it's still picking up the other field.
public $auto_validate_fields = array( '^email$' => 'valid_email', );
Again, thanks!