changing Model::create to use Set::filter

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5272 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-06-10 17:41:35 +00:00
parent 63387a79e3
commit dad80d947d

View file

@ -809,7 +809,6 @@ class Model extends Overloadable {
foreach($data as $n => $v) {
if (is_array($v)) {
foreach($v as $x => $y) {
if ($n == $this->name) {
if (isset($this->validationErrors[$x])) {
@ -922,7 +921,7 @@ class Model extends Overloadable {
}
$this->validationErrors = array();
$this->set(array_filter($defaults));
$this->set(Set::filter($defaults));
$this->set($data);
return $this->data;
}