Skip to content

Instantly share code, notes, and snippets.

@kiall
Created September 20, 2011 01:45
Show Gist options
  • Save kiall/1228112 to your computer and use it in GitHub Desktop.
Save kiall/1228112 to your computer and use it in GitHub Desktop.
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