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:
parent
5c2af9b7bd
commit
972a2db3a3
@ -244,6 +244,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
|
|
||||||
if ($this->statut == 0) $this->brouillon = 1;
|
if ($this->statut == 0) $this->brouillon = 1;
|
||||||
|
|
||||||
|
$this->lines=array();
|
||||||
|
|
||||||
$sql = "SELECT l.rowid, l.ref as ref_supplier, l.fk_product, l.product_type, l.label, l.description,";
|
$sql = "SELECT l.rowid, l.ref as ref_supplier, l.fk_product, l.product_type, l.label, l.description,";
|
||||||
$sql.= " l.qty,";
|
$sql.= " l.qty,";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user