[OFBiz] SVN: r5953 - trunk/applications/product/webapp/catalog/find
sichen at svn.ofbiz.org
sichen at svn.ofbiz.org
Thu Oct 13 17:40:04 EDT 2005
Author: sichen
Date: 2005-10-13 16:39:59 -0500 (Thu, 13 Oct 2005)
New Revision: 5953
Modified:
trunk/applications/product/webapp/catalog/find/FindProductById.ftl
Log:
Fixes OFBIZ-511: Catalog manager screen crashes when listing products that don't have an internal name. Added if_exist to fix this.
Modified: trunk/applications/product/webapp/catalog/find/FindProductById.ftl
===================================================================
--- trunk/applications/product/webapp/catalog/find/FindProductById.ftl 2005-10-13 09:52:25 UTC (rev 5952)
+++ trunk/applications/product/webapp/catalog/find/FindProductById.ftl 2005-10-13 21:39:59 UTC (rev 5953)
@@ -24,6 +24,7 @@
*@version 1.0
-->
+
<div class="screenlet">
<div class="screenlet-header">
<div class="boxhead">Find Products by ID Value</div>
@@ -35,8 +36,10 @@
</div>
</div>
+
<div class="head1">Search Results for Product with ID Value: [${idValue?if_exists}]</div>
+
<#if !goodIdentifications?has_content && !idProduct?has_content>
<br/>
<div class="head2"> No results found.</div>
@@ -48,7 +51,7 @@
</td>
<td> </td>
<td>
- <a href="<@ofbizUrl>EditProduct?productId=${idProduct.productId}</@ofbizUrl>" class="buttontext">${idProduct.internalName}</a>
+ <a href="<@ofbizUrl>EditProduct?productId=${idProduct.productId}</@ofbizUrl>" class="buttontext">${(idProduct.internalName)?if_exists}</a>
<span class="tabletext">(ID Value was the actual productId of this product.)</span>
</td>
</#if>
@@ -61,7 +64,7 @@
</td>
<td> </td>
<td>
- <a href="<@ofbizUrl>EditProduct?productId=${product.productId}</@ofbizUrl>" class="buttontext">${product.internalName}</a>
+ <a href="<@ofbizUrl>EditProduct?productId=${product.productId}</@ofbizUrl>" class="buttontext">${(product.internalName)?if_exists}</a>
<span class="tabletext">(ID Value was the <b>${goodIdentificationType.description?default(goodIdentification.goodIdentificationTypeId)}</b>.)</span>
</td>
</tr>
More information about the Svn
mailing list