mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
d12a3addac
commit
8ecb831d73
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ class Controller extends Object
|
||||||
{
|
{
|
||||||
if(!empty($this->{$model}->validationErrors))
|
if(!empty($this->{$model}->validationErrors))
|
||||||
{
|
{
|
||||||
$view->validationErrors[$this->modelKey] =& $this->{$model}->validationErrors;
|
$view->validationErrors[$model] =& $this->{$model}->validationErrors;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue