[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
This commit is contained in:
Mridul Pathak
2016-04-16 12:22:21 +00:00
parent e439033d32
commit 9073f181ab
@@ -107,6 +107,10 @@ under the License.
<input type="text" size="25" name="condValue" value="${(productPromoCond.condValue)!}" />
<#assign otherValue = productPromoCond.otherValue!>
<label>${uiLabelMap.CommonOther}:</label><input type="text" size="10" name="otherValue" <#if otherValue?has_content && !otherValue.contains("@")> value="${(productPromoCond.otherValue)!}"</#if> />
<#-- 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!>
</#if>