Skip to content
Snippets Groups Projects
Commit 1b26c7b8 authored by Prasad's avatar Prasad
Browse files

Merge branch 'productbundle_set_no_of_subproducts' into 'master'

Productbundle set no of subproducts

We believe that commit #eca58551 will only solve the issue when saving the amount for the first time.

This fix should solve it for re-saving the number of sub-products.

The reason is that modules/Products/actions/RelationAjax.php will check the request for the record and relatedModule.

See merge request !866
parents 1028781d dc7719fc
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,8 @@ PriceBooks_RelatedList_Js("Products_RelatedList_Js", {}, {
params['related_module'] = relatedModuleName;
params['mode'] = 'updateQuantity';
params['relatedRecords'] = JSON.stringify(idList);
params['record'] = sourceRecordId;
params['relatedModule'] = relatedModuleName;
app.request.post({data: params}).then(function(responseData) {
aDeferred.resolve(responseData);
});
......@@ -146,7 +148,7 @@ PriceBooks_RelatedList_Js("Products_RelatedList_Js", {}, {
var thisInstance = this;
var sourceModuleName = thisInstance.parentModuleName;
var relatedModuleName = thisInstance.relatedModulename;
if (sourceModuleName == relatedModuleName) {
var bundleCostInfo = jQuery('.bundleCostInfo', thisInstance.relatedContentContainer);
return this._super().then(function() {
......@@ -155,7 +157,7 @@ PriceBooks_RelatedList_Js("Products_RelatedList_Js", {}, {
}
return this._super();
},
/**
* Function to handle next page navigation
*/
......@@ -171,7 +173,7 @@ PriceBooks_RelatedList_Js("Products_RelatedList_Js", {}, {
}
return this._super();
},
/**
* Function to handle page jump in related list
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment