Added fix for errors messages not working with validation

git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1231 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2005-10-27 00:32:37 +00:00
parent d12a3addac
commit 8ecb831d73

View file

@ -367,7 +367,7 @@ class Controller extends Object
{
if(!empty($this->{$model}->validationErrors))
{
$view->validationErrors[$this->modelKey] =& $this->{$model}->validationErrors;
$view->validationErrors[$model] =& $this->{$model}->validationErrors;
}
}
}