mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing overriding of default messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4949 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
30a5f0384e
commit
2dd02aafba
1 changed files with 1 additions and 1 deletions
|
@ -1737,7 +1737,7 @@ class Model extends Overloadable {
|
|||
}
|
||||
if (!$valid) {
|
||||
if (!isset($validator['message'])) {
|
||||
$validator['message'] = ife(is_string($index) || (is_numeric($index) && $index > 0), $index, $message);
|
||||
$validator['message'] = ife(is_string($index) || (is_numeric($index) && count($ruleSet) > 1), $index, $message);
|
||||
}
|
||||
|
||||
$this->invalidate($fieldName, $validator['message']);
|
||||
|
|
Loading…
Reference in a new issue