diff --git a/applications/product/webapp/catalog/WEB-INF/actions/product/QuickAddVariants.bsh b/applications/product/webapp/catalog/WEB-INF/actions/product/QuickAddVariants.groovy similarity index 58% rename from applications/product/webapp/catalog/WEB-INF/actions/product/QuickAddVariants.bsh rename to applications/product/webapp/catalog/WEB-INF/actions/product/QuickAddVariants.groovy index f0cac41d32..2dafaa4a44 100644 --- a/applications/product/webapp/catalog/WEB-INF/actions/product/QuickAddVariants.bsh +++ b/applications/product/webapp/catalog/WEB-INF/actions/product/QuickAddVariants.groovy @@ -17,15 +17,8 @@ * under the License. */ -import org.ofbiz.entity.util.*; -import org.ofbiz.base.util.*; -import org.ofbiz.service.GenericDispatcher; +result = dispatcher.runSync("getProductFeaturesByType", ['productId' : productId, 'productFeatureApplTypeId' : 'SELECTABLE_FEATURE']); +context.featureTypes = result.productFeatureTypes; -result = dispatcher.runSync("getProductFeaturesByType", UtilMisc.toMap("productId", productId, "productFeatureApplTypeId", "SELECTABLE_FEATURE")); -featureTypes = result.get("productFeatureTypes"); - -result = dispatcher.runSync("getVariantCombinations", UtilMisc.toMap("productId", productId)); -featureCombinationInfos = result.get("featureCombinations"); - -context.put("featureTypes", featureTypes); -context.put("featureCombinationInfos", featureCombinationInfos); +result = dispatcher.runSync("getVariantCombinations", ['productId' : productId]); +context.featureCombinationInfos = result.featureCombinations; \ No newline at end of file diff --git a/applications/product/webapp/catalog/product/QuickAddVariants.ftl b/applications/product/webapp/catalog/product/QuickAddVariants.ftl index 8b3341602c..cccc2ac659 100644 --- a/applications/product/webapp/catalog/product/QuickAddVariants.ftl +++ b/applications/product/webapp/catalog/product/QuickAddVariants.ftl @@ -48,7 +48,7 @@ function clickAll(e) { <#if (product.isVirtual)?if_exists != "Y">