mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Clearing validation errors on Model::create() (Ticket #1960)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4316 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9444538ec0
commit
d1e375f5dd
1 changed files with 1 additions and 0 deletions
|
@ -865,6 +865,7 @@ class Model extends Overloadable {
|
|||
}
|
||||
}
|
||||
}
|
||||
$this->validationErrors = array();
|
||||
|
||||
$this->set(am(array_filter($defaults), $data));
|
||||
return $this->data;
|
||||
|
|
Loading…
Add table
Reference in a new issue