mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 02:22:39 +00:00
Adding fix for Ticket #2799, default error message should be i18n
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5309 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9f5becbc33
commit
b9f56fb0a7
1 changed files with 1 additions and 1 deletions
|
@ -1715,7 +1715,7 @@ class Model extends Overloadable {
|
|||
if (isset($validator['message'])) {
|
||||
$message = $validator['message'];
|
||||
} else {
|
||||
$message = 'This field cannot be left blank';
|
||||
$message = __('This field cannot be left blank',true);
|
||||
}
|
||||
|
||||
if (empty($validator['on']) || ($validator['on'] == 'create' && !$this->exists()) || ($validator['on'] == 'update' && $this->exists())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue