From c97f7a1f230926a32d76b9e6c382b7057394177e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 9 Mar 2019 12:01:16 +0100 Subject: [PATCH] Update api_boms.class.php --- htdocs/bom/class/api_boms.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/bom/class/api_boms.class.php b/htdocs/bom/class/api_boms.class.php index adda9ceb238..47e22a3bf62 100644 --- a/htdocs/bom/class/api_boms.class.php +++ b/htdocs/bom/class/api_boms.class.php @@ -162,11 +162,12 @@ class BOMs extends DolibarrApi if ($result) { $num = $db->num_rows($result); + $i = 0; while ($i < $num) { $obj = $db->fetch_object($result); $bom_static = new BOM($db); - if($bom_static->fetch($obj->rowid)) { + if ($bom_static->fetch($obj->rowid)) { $obj_ret[] = $this->_cleanObjectDatas($bom_static); } $i++;