We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.2
4.5.2
Composer (using codeigniter4/appstarter)
codeigniter4/appstarter
Windows
cli-server (PHP built-in webserver)
MySql
I have set valid_email and permit_empty validation rule in my email. But it not validating email when email field has invalid email format data.
Add a validation rule in email field valid_email|permit_empty It is not validating the email when email field has data.
I want to validating the email field only when user fill the email field.
No response
The text was updated successfully, but these errors were encountered:
Can you show sample code to reproduce?
Sorry, something went wrong.
CI 4.5.4 works. Errors is empty or show "The email field must contain a valid email address":
$this->validateData( [ // 'email' => 'test@mail', // 'email' => '', ], [ 'email' => 'valid_email|permit_empty', ] ); var_dump( 'Debug: ', $this->validator->getErrors() );
No branches or pull requests
PHP Version
8.2
CodeIgniter4 Version
4.5.2
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows
Which server did you use?
cli-server (PHP built-in webserver)
Database
MySql
What happened?
I have set valid_email and permit_empty validation rule in my email. But it not validating email when email field has invalid email format data.
Steps to Reproduce
Add a validation rule in email field valid_email|permit_empty
It is not validating the email when email field has data.
Expected Output
I want to validating the email field only when user fill the email field.
Anything else?
No response
The text was updated successfully, but these errors were encountered: