From fffdd4175d5359ce80ea7666cc666fc030edbc2f Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Fri, 27 Nov 2009 07:25:06 +0000 Subject: [PATCH] =?UTF-8?q?A=20patch=20from=20Arpit=20Singh=20Pandya=20"Er?= =?UTF-8?q?ror=20is=20not=20Handle=20for=20Inventory,=20if=20wrong=20produ?= =?UTF-8?q?ctId=20is=20passed,=20it=20is=20breaking=20the=20ftl."=20(https?= =?UTF-8?q?://issues.apache.org/jira/browse/OFBIZ-3265)=20-=20OFBIZ-3265?= =?UTF-8?q?=20Steps=20to=20generate=20the=20problem=20=E2=80=93=20Go=20to?= =?UTF-8?q?=20https://demo.ofbiz.org/catalog/control/main=20=E2=80=93=20In?= =?UTF-8?q?=20Right=20bar=20at=20Search=20Products=20section=20Leave=20Pro?= =?UTF-8?q?duct=20Id.=20=E2=80=93=20Select=20"Inventory"=20in=20"Product?= =?UTF-8?q?=20Jump"=20DropDown.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../webapp/catalog/product/EditProductInventoryItems.ftl | 4 ++++ .../webapp/catalog/product/ProductInventorySummary.ftl | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/applications/product/webapp/catalog/product/EditProductInventoryItems.ftl b/applications/product/webapp/catalog/product/EditProductInventoryItems.ftl index 4770b8435c..10648e1e64 100644 --- a/applications/product/webapp/catalog/product/EditProductInventoryItems.ftl +++ b/applications/product/webapp/catalog/product/EditProductInventoryItems.ftl @@ -18,6 +18,7 @@ under the License. --> <#assign externalKeyParam = "&externalLoginKey=" + requestAttributes.externalLoginKey?if_exists>
+ <#if product?exists>

${uiLabelMap.ProductInventoryItems} ${uiLabelMap.CommonFor} <#if product?exists>${(product.internalName)?if_exists} [${uiLabelMap.CommonId}:${productId?if_exists}]

@@ -111,4 +112,7 @@ under the License.
+ <#else> +

${uiLabelMap.ProductProductNotFound} ${productId?if_exists}!

+ \ No newline at end of file diff --git a/applications/product/webapp/catalog/product/ProductInventorySummary.ftl b/applications/product/webapp/catalog/product/ProductInventorySummary.ftl index 099ce2ae3b..34f5378dd2 100644 --- a/applications/product/webapp/catalog/product/ProductInventorySummary.ftl +++ b/applications/product/webapp/catalog/product/ProductInventorySummary.ftl @@ -22,6 +22,7 @@ under the License. ${uiLabelMap.ProductShowAllFacilities}
+ <#if product?exists>

${uiLabelMap.ProductInventorySummary}

@@ -105,4 +106,7 @@ under the License.
+ <#else> +

${uiLabelMap.ProductProductNotFound} ${productId?if_exists}!

+