Merge pull request #10785 from frederic34/patch-3
Update api_boms.class.php
This commit is contained in:
commit
776159b486
@ -162,11 +162,12 @@ class BOMs extends DolibarrApi
|
|||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
$i = 0;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
$bom_static = new BOM($db);
|
$bom_static = new BOM($db);
|
||||||
if($bom_static->fetch($obj->rowid)) {
|
if ($bom_static->fetch($obj->rowid)) {
|
||||||
$obj_ret[] = $this->_cleanObjectDatas($bom_static);
|
$obj_ret[] = $this->_cleanObjectDatas($bom_static);
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user