2
0
forked from Wavyzz/dolibarr

replace double quote per simple quote in update_frequency SQL

Fix #5835
This commit is contained in:
Yann Verry
2016-10-04 21:55:37 +02:00
parent b959579b11
commit f4347ec60e

View File

@@ -1041,7 +1041,7 @@ class FactureRec extends CommonInvoice
$sql.= ' SET frequency = '.($frequency?$this->db->escape($frequency):'null');
if (!empty($unit))
{
$sql.= ', unit_frequency = "'.$this->db->escape($unit).'"';
$sql.= ', unit_frequency = \''.$this->db->escape($unit).'\'';
}
$sql.= ' WHERE rowid = '.$this->id;
@@ -1204,4 +1204,4 @@ class FactureLigneRec extends CommonInvoiceLine
}
}
}
}