Merge pull request #5836 from yanntech/fix/postgresql
replace double quote per simple quote in update_frequency SQL
This commit is contained in:
commit
611f1bcf89
@ -1041,7 +1041,7 @@ class FactureRec extends CommonInvoice
|
|||||||
$sql.= ' SET frequency = '.($frequency?$this->db->escape($frequency):'null');
|
$sql.= ' SET frequency = '.($frequency?$this->db->escape($frequency):'null');
|
||||||
if (!empty($unit))
|
if (!empty($unit))
|
||||||
{
|
{
|
||||||
$sql.= ', unit_frequency = "'.$this->db->escape($unit).'"';
|
$sql.= ', unit_frequency = \''.$this->db->escape($unit).'\'';
|
||||||
}
|
}
|
||||||
$sql.= ' WHERE rowid = '.$this->id;
|
$sql.= ' WHERE rowid = '.$this->id;
|
||||||
|
|
||||||
@ -1204,4 +1204,4 @@ class FactureLigneRec extends CommonInvoiceLine
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user