mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
fixing bug i introduced in cleanUpFields where it would add the current date to any datetime field
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4609 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
aa9128492c
commit
5be52520c5
1 changed files with 1 additions and 1 deletions
|
@ -929,7 +929,7 @@ class Controller extends Object {
|
||||||
} else if ('time' == $field['type']) {
|
} else if ('time' == $field['type']) {
|
||||||
$newDate = "{$_hour}:{$_min}:{$_sec}";
|
$newDate = "{$_hour}:{$_min}:{$_sec}";
|
||||||
}
|
}
|
||||||
if($newDate) {
|
if($newDate && isset($this->data[$modelClass][$field['name']])) {
|
||||||
$this->data[$modelClass][$field['name']] = $newDate;
|
$this->data[$modelClass][$field['name']] = $newDate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue