Author: ashish
Date: Sat Dec 26 03:10:26 2009
New Revision: 893935
URL:
http://svn.apache.org/viewvc?rev=893935&view=revLog:
Conditional check. If "Internal Name" not found then check for "Product Name" and if both the values are missing then show the default message.
Modified:
ofbiz/trunk/applications/product/webapp/catalog/find/miniproductlist.ftl
Modified: ofbiz/trunk/applications/product/webapp/catalog/find/miniproductlist.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/find/miniproductlist.ftl?rev=893935&r1=893934&r2=893935&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/find/miniproductlist.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/find/miniproductlist.ftl Sat Dec 26 03:10:26 2009
@@ -23,7 +23,11 @@
<#assign product = productCategoryMember.getRelatedOneCache("Product")>
<div>
<a href='<@ofbizUrl>EditProduct?productId=${product.productId}</@ofbizUrl>' class='buttontext'>
- ${product.internalName?default("${uiLabelMap.CommonNo} ${uiLabelMap.ProductInternalName}")}
+ <#if product.internalName?has_content>
+ ${product.internalName}
+ <#else>
+ ${product.productName?default("${uiLabelMap.CommonNo} ${uiLabelMap.ProductInternalName} / ${uiLabelMap.ProductProductName}")}
+ </#if>
</a>
<div>
<b>${product.productId}</b>