updating cleanUpFields to skip created, modified, updated

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4616 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-03-15 22:09:59 +00:00
parent 8917efcc0a
commit 8581323bf5

View file

@ -929,7 +929,7 @@ class Controller extends Object {
} else if ('time' == $field['type']) {
$newDate = "{$_hour}:{$_min}:{$_sec}";
}
if($newDate && isset($this->data[$modelClass][$field['name']])) {
if($newDate && !in_array($field['name'], array('created', 'updated', 'modified'))) {
$this->data[$modelClass][$field['name']] = $newDate;
}
}