There is bug in validation class… |
|||
|---|---|---|---|
| Date: | 04/16/2008 | Severity: | Minor |
| Status: | Resolved | Reporter: | redips |
| Version: | 1.6.2 SVN | ||
| Keywords: | Libraries, Validation Class | ||
Description
While validating array(multiple inputs for example: ‘xxx[]’) CI will raise notice with array to string conversion.
Code Sample
/**
* Validation.php line: 704
* FIX:
*/
if ($this->_safe_form_data == FALSE OR $data == '' || is_array( $data ) )
Expected Result
Actual Result
Comment on Bug Report
| Posted by: Athrun on 22 April 2008 10:20am | |
|
|
This change is not sufficient (ie: set_checkbox() will not work with multiples values) This post explains how to modify Validation.php to validate (and redisplay) multiple entries in checkboxes/selects : |
| Posted by: Derek Jones on 12 May 2008 11:10am | |
|
|
The reported bug is resolved. The issue Ahtrun raises is separate, and the discussion is ongoing in the forums. A separate bug report should be opened for that issue. |
