Fix: Must use "null" for value when finished is not defined but not when
finished is "0".
This commit is contained in:
parent
5501809844
commit
ccab2b7af4
@ -338,7 +338,7 @@ class Product extends CommonObject
|
||||
$sql.= ", ".$this->status;
|
||||
$sql.= ", ".$this->status_buy;
|
||||
$sql.= ", '".$this->canvas."'";
|
||||
$sql.= ", ".((! isset($this->finished) || $this->finished < 0)?'null':$this->finished);
|
||||
$sql.= ", ".((! isset($this->finished) || $this->finished < 0 || $this->finished == '') ? 'null' : $this->finished);
|
||||
$sql.= ")";
|
||||
|
||||
dol_syslog(get_class($this)."::Create sql=".$sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user