mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding insertQueryData fix for foreign keys = 0 (Ticket #1959)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4357 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
35f479f232
commit
cedb56676f
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ class DataSource extends Object{
|
|||
}
|
||||
break;
|
||||
}
|
||||
if(empty($val)){
|
||||
if(empty($val) && $val !== '0') {
|
||||
return false;
|
||||
}
|
||||
$query = r($key, $this->value($val, $model->getColumnType($model->primaryKey)), $query);
|
||||
|
|
Loading…
Reference in a new issue