summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-21 15:00:20 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-21 15:00:20 +0200
commit8d3099d4e5261e0f044c7fcd8b3ab7724645aa8d (patch)
tree19807910e5aa6fb087d6a9dc2935af7736a19804
parenta84055b49539da1faa2893618b2475d1888a9fea (diff)
Fix issue #79
-rw-r--r--system/libraries/Form_validation.php3
-rw-r--r--user_guide_src/source/changelog.rst1
2 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index db773e252..4bb29e41b 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -571,8 +571,7 @@ class CI_Form_validation {
{
foreach ($postdata as $key => $val)
{
- $this->_execute($row, $rules, $val, $cycles);
- $cycles++;
+ $this->_execute($row, $rules, $val, $key);
}
return;
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index da608b162..8a6c922a4 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -290,6 +290,7 @@ Bug fixes for 3.0
- Fixed a bug (#999) - :doc:`Config Library <libraries/config>` method site_url() always appended ``$config['url_suffix']`` to the end of the URL string, regardless of wether a query string exists in it.
- Fixed a bug where :doc:`URL Helper <helpers/url_helper>` function anchor_popup() ignored the attributes argument if it is not an array.
- Fixed a bug (#1328) - :doc:`Form Validation Library <libraries/form_validation>` didn't properly check the type of the form fields before processing them.
+- Fixed a bug (#79) - :doc:`Form Validation Library <libraries/form_validation>` didn't properly validate array fields that use associative keys or have custom indexes.
Version 2.1.1
=============