fix: #24405 (save deposit percent)
This commit is contained in:
parent
8cd8b5f401
commit
cdd8b00534
@ -2742,7 +2742,7 @@ abstract class CommonObject
|
|||||||
|
|
||||||
$sql = 'UPDATE '.$this->db->prefix().$this->table_element;
|
$sql = 'UPDATE '.$this->db->prefix().$this->table_element;
|
||||||
$sql .= " SET ".$fieldname." = ".(($id > 0 || $id == '0') ? ((int) $id) : 'NULL');
|
$sql .= " SET ".$fieldname." = ".(($id > 0 || $id == '0') ? ((int) $id) : 'NULL');
|
||||||
if (in_array($this->table_element, array('propal', 'commande'))) {
|
if (in_array($this->table_element, array('propal', 'commande', 'societe'))) {
|
||||||
$sql .= " , deposit_percent = " . (empty($deposit_percent) ? 'NULL' : "'".$this->db->escape($deposit_percent)."'");
|
$sql .= " , deposit_percent = " . (empty($deposit_percent) ? 'NULL' : "'".$this->db->escape($deposit_percent)."'");
|
||||||
}
|
}
|
||||||
$sql .= ' WHERE rowid='.((int) $this->id);
|
$sql .= ' WHERE rowid='.((int) $this->id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user