mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixes #3195, Controller::cleanUpFields() doesn't check the schema if the fields allows null
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5624 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
1ed5a285ba
commit
7fe576f122
1 changed files with 1 additions and 1 deletions
|
@ -974,7 +974,7 @@ class Controller extends Object {
|
|||
}
|
||||
}
|
||||
|
||||
if($useNewDate) {
|
||||
if ($useNewDate && (isset($date) || $value['null'])) {
|
||||
$this->data[$modelClass][$field] = $date;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue