summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-03-13 10:24:30 +0100
committerAndrey Andreev <narf@devilix.net>2015-03-13 10:24:30 +0100
commitcc778886ef9cc0b03c8a622163f1e80eaac340d3 (patch)
tree7f04604ca9177b56ce76326511409f3d70ef4d96
parent64d1d82e03ace010dcf03c509cf6b87e0da27ff4 (diff)
Close #3663
-rw-r--r--system/libraries/Form_validation.php2
-rw-r--r--user_guide_src/source/changelog.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 9d1660258..05de59628 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -831,7 +831,7 @@ class CI_Form_validation {
// DEPRECATED support for non-prefixed keys
&& FALSE === ($line = $this->CI->lang->line($rule, FALSE)))
{
- $line = $this->CI->lang->line('form_validation_error_message_not_set');
+ $line = $this->CI->lang->line('form_validation_error_message_not_set').'('.$rule.')';
}
}
else
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index ef3d2af39..99e4de53a 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -362,6 +362,7 @@ Release Date: Not Released
- Added support for custom error messages per field rule.
- Added support for callable rules when they are passed as an array.
- Added support for non-ASCII domains in **valid_email** rule, depending on the Intl extension.
+ - Changed the debug message about an error message not being set to include the rule name it is about.
- :doc:`Caching Library <libraries/caching>` changes include: