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:
nate 2007-01-22 08:22:10 +00:00
parent 9444538ec0
commit d1e375f5dd

View file

@ -865,6 +865,7 @@ class Model extends Overloadable {
}
}
}
$this->validationErrors = array();
$this->set(am(array_filter($defaults), $data));
return $this->data;