Skip to content

Commit

Permalink
FIX #4870
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 25, 2016
1 parent 4751c5a commit 00bf8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/commonobject.class.php
Expand Up @@ -2726,7 +2726,7 @@ function setIncoterms($id_incoterm, $location)
{
$sql = "UPDATE ".MAIN_DB_PREFIX.$this->table_element;
$sql.= " SET fk_incoterms = ".($id_incoterm > 0 ? $id_incoterm : "null");
$sql.= ", location_incoterms = '".($id_incoterm > 0 ? $this->db->escape($location) : "null")."'";
$sql.= ", location_incoterms = ".($id_incoterm > 0 ? "'".$this->db->escape($location)."'" : "null");
$sql.= " WHERE rowid = " . $this->id;
dol_syslog(get_class($this).'::setIncoterms', LOG_DEBUG);
$resql=$this->db->query($sql);
Expand Down

0 comments on commit 00bf8ca

Please sign in to comment.