summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-07-06 22:53:41 +0200
committerDerek Allard <derek.allard@ellislab.com>2009-07-06 22:53:41 +0200
commit4e5cf1ca1cfcb4559d8b18898a526181963890f6 (patch)
tree1856022333131beed4a421cc9d7cb8bbe93d3467
parent15b93ca14fb65565561cc9c38d02dc3df1f8ba07 (diff)
Fixed a bug in the Form Validation library where multiple callbacks weren't working (#6110)
-rw-r--r--system/libraries/Form_validation.php2
-rw-r--r--user_guide/changelog.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index f8077b8ee..1497d8517 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -601,7 +601,7 @@ class CI_Form_validation {
// If the field isn't required and we just processed a callback we'll move on...
if ( ! in_array('required', $rules, TRUE) AND $result !== FALSE)
{
- return;
+ continue;
}
}
else
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index 0e1277999..d99a52f82 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -90,6 +90,7 @@ SVN Revision: </p>
<h3>Bug fixes for 1.7.2</h3>
<ul>
<li>Fixed assorted user guide typos or examples (#6743, #7214, #7516, #7287).</li>
+ <li>Fixed a bug in the Form Validation library where multiple callbacks weren't working (#6110)</li>
<li>doctype helper default value was missing a "1".</li>
<li>Fixed a bug with ORIG_PATH_INFO that was allowing URIs of just a slash through.</li>
<li>Fixed a fatal error in the Oracle and ODBC drivers (#6752)</li>