2
0
forked from Wavyzz/dolibarr

Fix: bad links

Fix: prepare for the expedition from a propal
This commit is contained in:
Regis Houssin
2010-01-30 08:26:16 +00:00
parent 7d10f8533e
commit 26a4575c10
3 changed files with 9 additions and 8 deletions

View File

@@ -1697,8 +1697,10 @@ class Commande extends CommonObject
{
dol_syslog('Commande::set_ref_client this->id='.$this->id.', ref_client='.$ref_client);
$sql = 'UPDATE '.MAIN_DB_PREFIX.'commande SET ref_client = '.(empty($ref_client) ? 'NULL' : '\''.addslashes($ref_client).'\'');
$sql = 'UPDATE '.MAIN_DB_PREFIX.'commande SET';
$sql.= ' ref_client = '.(empty($ref_client) ? 'NULL' : '\''.addslashes($ref_client).'\'');
$sql.= ' WHERE rowid = '.$this->id;
if ($this->db->query($sql) )
{
$this->ref_client = $ref_client;