diff --git a/include/Webservices/LineItem/VtigerInventoryOperation.php b/include/Webservices/LineItem/VtigerInventoryOperation.php index 2662f598d904aad0f5823a9cf73ffbaa62e3a4e9..a0a5f72f76baa10169833dc898d0898ef53e14d7 100644 --- a/include/Webservices/LineItem/VtigerInventoryOperation.php +++ b/include/Webservices/LineItem/VtigerInventoryOperation.php @@ -94,6 +94,7 @@ class VtigerInventoryOperation extends VtigerModuleOperation { $parent = parent::revise($element); $_REQUEST['action'] = $prevAction; + $parent['LineItems'] = $handler->getAllLineItemForParent($parentId); } return array_merge($element,$parent); } @@ -110,6 +111,7 @@ class VtigerInventoryOperation extends VtigerModuleOperation { $idComponents = vtws_getIdComponents($id); $lineItems = $handler->getAllLineItemForParent($idComponents[1]); $element['LineItems'] = $lineItems; + $element['productid'] = $lineItems[0]['productid']; return $element; }