You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2026/09/10 14:35:45 UTC

(ofbiz-framework) branch trunk updated: Fixed: applyFeatureToProductFromTypeAndCode sequenceNum mutation (OFBIZ-13554)

This is an automated email from the ASF dual-hosted git repository.

mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new c4c8f1d2c0 Fixed: applyFeatureToProductFromTypeAndCode sequenceNum mutation (OFBIZ-13554)
c4c8f1d2c0 is described below

commit c4c8f1d2c0828d7ee37e9855393c5471f66f9a43
Author: Mridul Pathak <mr...@gmail.com>
AuthorDate: Thu Sep 10 18:16:46 2026 +0530

    Fixed: applyFeatureToProductFromTypeAndCode sequenceNum mutation (OFBIZ-13554)
    
    Copy parameters map per iteration to prevent sequenceNum pollution across features.
---
 .../ofbiz/product/product/feature/ProductFeatureServicesScript.groovy   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/feature/ProductFeatureServicesScript.groovy b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/feature/ProductFeatureServicesScript.groovy
index 5bd633e52f..82bb585d2e 100644
--- a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/feature/ProductFeatureServicesScript.groovy
+++ b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/feature/ProductFeatureServicesScript.groovy
@@ -32,7 +32,7 @@ Map applyFeatureToProductFromTypeAndCode() {
                     idCode: parameters.idCode)
             .queryList()
     for (GenericValue productFeature : productFeatures) {
-        Map applyFeatureContext = parameters
+        Map applyFeatureContext = [*: parameters]
         applyFeatureContext.productFeatureId = productFeature.productFeatureId
         applyFeatureContext.sequenceNum = applyFeatureContext.sequenceNum ?: productFeature.defaultSequenceNum
         run service: 'applyFeatureToProduct', with: applyFeatureContext