From c1895834c410f04419febe83d29547201bbab7d0 Mon Sep 17 00:00:00 2001
From: Pascal Kriete
Date: Tue, 13 Oct 2009 12:56:43 +0000
Subject: added translation of fields passed as validation rule parameters
---
system/libraries/Form_validation.php | 2 +-
user_guide/changelog.html | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
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:
Increased randomness withis_really_writable() to avoid file collisions when hundreds or thousands of requests occur at once.
Fixed or clarified assorted user guide typos or examples.
Made get_mime_by_extension() case insensitive.
+ Fixed a bug in the Form Validation library where fields passed as rule parameters were not being translated (#9132)
Version 1.7.2
--
cgit v1.2.3-24-g4f1b