diff --git a/layouts/v7/modules/Inventory/resources/Popup.js b/layouts/v7/modules/Inventory/resources/Popup.js
index 96653877ea63b898414ec9912a6d5207d85969b3..8d2cebdd48e78a17f1656efdedf849c34a410f5e 100644
--- a/layouts/v7/modules/Inventory/resources/Popup.js
+++ b/layouts/v7/modules/Inventory/resources/Popup.js
@@ -63,7 +63,10 @@ Vtiger_Popup_Js('Inventory_Popup_Js',{},{
 			params['productid'] = parentProductId;
 			params['view'] = 'SubProductsPopupAjax';
 		}
-		params['module'] = jQuery('#EditView').find('[name="module"]').val();
+		var module = jQuery('#EditView').find('[name="module"]').val();
+		if(typeof module != "undefined") {
+		          params['module'] = module;
+		}		
 		return params;
 	},