Update api_boms.class.php

This commit is contained in:
Frédéric FRANCE 2019-03-09 12:01:16 +01:00 committed by GitHub
parent 10b9fdc1fd
commit c97f7a1f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++;