diff options
author | Pascal Kriete <pascal.kriete@ellislab.com> | 2009-10-13 14:56:43 +0200 |
---|---|---|
committer | Pascal Kriete <pascal.kriete@ellislab.com> | 2009-10-13 14:56:43 +0200 |
commit | c1895834c410f04419febe83d29547201bbab7d0 (patch) | |
tree | 8511536bb5ac068d43732a164ed5d8e2255c0a47 | |
parent | 8719a5c7fe75b84f49f584065e5ef4e4e2a0f16f (diff) |
added translation of fields passed as validation rule parameters
-rw-r--r-- | system/libraries/Form_validation.php | 2 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 1497d8517..e825b1b32 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -658,7 +658,7 @@ class CI_Form_validation { // of another field? If so we need to grab its "field label" if (isset($this->_field_data[$param]) AND isset($this->_field_data[$param]['label'])) { - $param = $this->_field_data[$param]['label']; + $param = $this->_translate_fieldname($this->_field_data[$param]['label']); } // Build the error message diff --git a/user_guide/changelog.html b/user_guide/changelog.html index e61961b39..f11310309 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -80,6 +80,7 @@ SVN Revision: </p> <li>Increased randomness with<kbd>is_really_writable()</kbd> to avoid file collisions when hundreds or thousands of requests occur at once.</li> <li>Fixed or clarified assorted user guide typos or examples.</li> <li>Made <kbd>get_mime_by_extension()</kbd> case insensitive.</li> + <li>Fixed a bug in the Form Validation library where fields passed as rule parameters were not being translated (#9132)</li> </ul> <h2>Version 1.7.2</h2> |