Part of the EllisLab Network

Bug Report

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

Page 1 of 1 pages
Posted by: Athrun on 22 April 2008 10:20am
no avatar

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 :
http://codeigniter.com/forums/viewthread/73012/

Posted by: Derek Jones on 12 May 2008 11:10am
Derek Jones's avatar

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.

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?