From 9073f181abe51e973dc0e638ec234594fc91fa4e Mon Sep 17 00:00:00 2001 From: Mridul Pathak Date: Sat, 16 Apr 2016 12:22:21 +0000 Subject: [PATCH] [OFBIZ-7010] Shipping method is shown on all Promo Conditions even when only a single condition includes Shipping Method. Thanks Swapnil M Mane for reporting the issue and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1739447 13f79535-47bb-0310-9956-ffa450edef68 --- .../product/webapp/catalog/promo/EditProductPromoRules.ftl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl b/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl index b76cefc195..cb630f2dd5 100644 --- a/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl +++ b/applications/product/webapp/catalog/promo/EditProductPromoRules.ftl @@ -107,6 +107,10 @@ under the License. <#assign otherValue = productPromoCond.otherValue!> value="${(productPromoCond.otherValue)!}" /> + + <#-- Reseting the values of carrierParty and carrierShippingMethod assigned in previous iteration of productPromoConds --> + <#assign carrierShippingMethod = ""/> + <#assign carrierParty = ""/> <#if otherValue?has_content && otherValue.contains("@")> <#assign carrierShippingMethod = productPromoCond.otherValue!>