form validation error when using ‘required’ |
|||
|---|---|---|---|
| Date: | 10/17/2008 | Severity: | Major |
| Status: | Resolved | Reporter: | CI shocki |
| Version: | 1.7.0 SVN | ||
| Keywords: | |||
Description
When using ‘required’, ‘isset’ error message is displayed.
Code Sample
$this->form_validation->set_rules('test', 'test', 'required');
Expected Result
The test field is required.
Actual Result
The test field must have a value.
Comment on Bug Report
| Posted by: barbazul on 18 October 2008 3:10pm | |
|
|
I also detected this and posted a fix in: They only commited the solution for the $rules variable but this bug persist and I believe my solution fixes this Please confirm |
| Posted by: barbazul on 18 October 2008 6:27pm | |
|
|
They have now posted a fix which doesn’t address the case when both “isset” and “required” rules are set Of course.. it would be stupid to set both rules, but nevertheless if it possible, it should be addressed |
