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:
Jacques Le Roux
2009-11-27 07:25:06 +00:00
parent 59a9af11e2
commit fffdd4175d
2 changed files with 8 additions and 0 deletions
@@ -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}&amp;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>