No initialisation of the array before filling it. May cause some trouble when fetch is call several times and lines added or deleted

This commit is contained in:
Philippe 2016-09-06 20:48:20 +02:00
parent c0d6d6d92c
commit 21ab4e5c91

View File

@ -271,6 +271,8 @@ class CommandeFournisseur extends CommonOrder
$this->fetchObjectLinked();
$this->lines=array();
$sql = "SELECT l.rowid, l.ref as ref_supplier, l.fk_product, l.product_type, l.label, l.description,";
$sql.= " l.qty,";
$sql.= " l.tva_tx, l.remise_percent, l.subprice,";