Merge pull request #5836 from yanntech/fix/postgresql

replace double quote per simple quote in update_frequency SQL
This commit is contained in:
Laurent Destailleur 2016-10-07 00:01:31 +02:00 committed by GitHub
commit 611f1bcf89

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
}
}
}
}