A patch from Arpit Singh Pandya "Error is not Handle for Inventory, if wrong productId is passed, it is breaking the ftl." (https://issues.apache.org/jira/browse/OFBIZ-3265) - OFBIZ-3265
Steps to generate the problem – Go to https://demo.ofbiz.org/catalog/control/main – In Right bar at Search Products section Leave Product Id. – Select "Inventory" in "Product Jump" DropDown. It is breaking the ProductInventorySummary.ftl and EditProductInventoryItems.ftl code. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@884758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -18,6 +18,7 @@ under the License.
|
||||
-->
|
||||
<#assign externalKeyParam = "&externalLoginKey=" + requestAttributes.externalLoginKey?if_exists>
|
||||
<div class="screenlet">
|
||||
<#if product?exists>
|
||||
<div class="screenlet-title-bar">
|
||||
<h3>${uiLabelMap.ProductInventoryItems} ${uiLabelMap.CommonFor} <#if product?exists>${(product.internalName)?if_exists} </#if> [${uiLabelMap.CommonId}:${productId?if_exists}]</h3>
|
||||
</div>
|
||||
@@ -111,4 +112,7 @@ under the License.
|
||||
</table>
|
||||
</#if>
|
||||
</div>
|
||||
<#else>
|
||||
<h2>${uiLabelMap.ProductProductNotFound} ${productId?if_exists}!</h2>
|
||||
</#if>
|
||||
</div>
|
||||
@@ -22,6 +22,7 @@ under the License.
|
||||
<a href="EditProductInventoryItems?productId=${productId}&showAllFacilities=Y" class="buttontext">${uiLabelMap.ProductShowAllFacilities}</a>
|
||||
</#if>
|
||||
<div class="screenlet">
|
||||
<#if product?exists>
|
||||
<div class="screenlet-title-bar">
|
||||
<h3>${uiLabelMap.ProductInventorySummary}</h3>
|
||||
</div>
|
||||
@@ -105,4 +106,7 @@ under the License.
|
||||
</#list>
|
||||
</table>
|
||||
</div>
|
||||
<#else>
|
||||
<h2>${uiLabelMap.ProductProductNotFound} ${productId?if_exists}!</h2>
|
||||
</#if>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user