Created
September 20, 2011 01:45
-
-
Save kiall/1228112 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/classes/kohana/orm/validation/exception.php b/classes/kohana/orm/validation/exception.php | |
index 67b3fe3..0e4b4a7 100644 | |
--- a/classes/kohana/orm/validation/exception.php | |
+++ b/classes/kohana/orm/validation/exception.php | |
@@ -150,7 +150,15 @@ class Kohana_ORM_Validation_Exception extends Kohana_Exception { | |
{ | |
if (is_array($object)) | |
{ | |
- $errors[$key] = $this->generate_errors($alias.DIRECTORY_SEPARATOR.$key, $object, $directory, $translate); | |
+ // Temporary hack - see #4185 and #3877 | |
+ if ($key == '_external') | |
+ { | |
+ $errors[$key] = $this->generate_errors($alias.DIRECTORY_SEPARATOR.$key, $object, $directory, $translate); | |
+ } | |
+ else | |
+ { | |
+ $errors[$key] = $this->generate_errors($key, $object, $directory, $translate); | |
+ } | |
} | |
elseif ($object instanceof Validation) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment