Skip to content
Snippets Groups Projects
Commit 88453009 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #1453 from atm-alexis/3.5

bug on update service with service created in 3.4
parents bea6887f d139009e
Branches
Tags
No related merge requests found
...@@ -338,7 +338,7 @@ class Product extends CommonObject ...@@ -338,7 +338,7 @@ class Product extends CommonObject
$sql.= ", ".$this->status; $sql.= ", ".$this->status;
$sql.= ", ".$this->status_buy; $sql.= ", ".$this->status_buy;
$sql.= ", '".$this->canvas."'"; $sql.= ", '".$this->canvas."'";
$sql.= ", ".((! isset($this->finished) || $this->finished < 0 || $this->finished == '') ? 'null' : $this->finished); $sql.= ", ".((! isset($this->finished) || $this->finished < 0 || $this->finished == '') ? 'null' : (int)$this->finished);
$sql.= ")"; $sql.= ")";
dol_syslog(get_class($this)."::Create sql=".$sql); dol_syslog(get_class($this)."::Create sql=".$sql);
...@@ -474,7 +474,7 @@ class Product extends CommonObject ...@@ -474,7 +474,7 @@ class Product extends CommonObject
$sql.= ", tosell = " . $this->status; $sql.= ", tosell = " . $this->status;
$sql.= ", tobuy = " . $this->status_buy; $sql.= ", tobuy = " . $this->status_buy;
$sql.= ", finished = " . ((! isset($this->finished) || $this->finished < 0) ? "null" : $this->finished); $sql.= ", finished = " . ((! isset($this->finished) || $this->finished < 0) ? "null" : (int)$this->finished);
$sql.= ", weight = " . ($this->weight!='' ? "'".$this->weight."'" : 'null'); $sql.= ", weight = " . ($this->weight!='' ? "'".$this->weight."'" : 'null');
$sql.= ", weight_units = " . ($this->weight_units!='' ? "'".$this->weight_units."'": 'null'); $sql.= ", weight_units = " . ($this->weight_units!='' ? "'".$this->weight_units."'": 'null');
$sql.= ", length = " . ($this->length!='' ? "'".$this->length."'" : 'null'); $sql.= ", length = " . ($this->length!='' ? "'".$this->length."'" : 'null');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment