Part of the EllisLab Network

Bug Report

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

Page 1 of 1 pages
Posted by: barbazul on 18 October 2008 3:10pm
barbazul's avatar

I also detected this and posted a fix in:
http://codeigniter.com/bug_tracker/bug/5311/

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
barbazul's avatar

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

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?