Fix pgsql compatibility
This commit is contained in:
parent
b79048e6bd
commit
5b9d9e9ccf
@ -2856,7 +2856,7 @@ class Product extends CommonObject
|
||||
|
||||
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'product_association (fk_product_pere, fk_product_fils, qty)';
|
||||
$sql.= " SELECT ".$toId.", fk_product_fils, qty FROM ".MAIN_DB_PREFIX."product_association";
|
||||
$sql.= " WHERE fk_product_pere = '".$fromId."'";
|
||||
$sql.= " WHERE fk_product_pere = ".$fromId;
|
||||
|
||||
dol_syslog(get_class($this).'::clone_association', LOG_DEBUG);
|
||||
if (! $this->db->query($sql))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user