Fix: missing variable
This commit is contained in:
parent
deb30b6f17
commit
9831a2028c
@ -878,7 +878,7 @@ abstract class CommonObject
|
|||||||
if ($this->element == 'societe') $fieldname = 'cond_reglement';
|
if ($this->element == 'societe') $fieldname = 'cond_reglement';
|
||||||
|
|
||||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element;
|
$sql = 'UPDATE '.MAIN_DB_PREFIX.$this->table_element;
|
||||||
$sql .= ' SET fk_cond_reglement = '.$id;
|
$sql .= ' SET '.$fieldname.' = '.$id;
|
||||||
$sql .= ' WHERE rowid='.$this->id;
|
$sql .= ' WHERE rowid='.$this->id;
|
||||||
|
|
||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user