svn commit: r510505 - /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r510505 - /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl

jonesde
Author: jonesde
Date: Thu Feb 22 05:39:57 2007
New Revision: 510505

URL: http://svn.apache.org/viewvc?view=rev&rev=510505
Log:
Fixed wrong type ID in an if statement, removed unnecessary boolean for category

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl?view=diff&rev=510505&r1=510504&r2=510505
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/catalog/ProductCategoryLink.ftl Thu Feb 22 05:39:57 2007
@@ -22,7 +22,6 @@
 <#if productCategoryLink.detailSubScreen?has_content>
     ${screens.render(productCategoryLink.detailSubScreen)}
 <#else>
-    <#assign isCategoryIdLink = false/>
     <#assign titleText = productCategoryLink.titleText?if_exists/>
     <#assign imageUrl = productCategoryLink.imageUrl?if_exists/>
     <#assign detailText = productCategoryLink.detailText?if_exists/>
@@ -31,9 +30,8 @@
       <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "keywordsearch?" + productCategoryLink.linkInfo)/>
     <#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
       <#assign linkUrl = productCategoryLink.linkInfo?if_exists/>
-    <#elseif productCategoryLink.linkTypeEnumId == "PCLT_ABS_URL">
+    <#elseif productCategoryLink.linkTypeEnumId == "PCLT_CAT_ID">
       <#assign linkUrl = requestAttributes._REQUEST_HANDLER_.makeLink(request, response, "category?category_id=" + productCategoryLink.linkInfo)/>
-      <#assign isCategoryIdLink = true/>
       <#assign linkProductCategory = delegator.findByPrimaryKeyCache("ProductCategory", Static["org.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryLink.linkInfo))/>
       <#assign linkCategoryContentWrapper = Static["org.ofbiz.product.category.CategoryContentWrapper"].makeCategoryContentWrapper(linkProductCategory, request)/>
       <#assign titleText = productCategoryLink.titleText?default(linkCategoryContentWrapper.get("CATEGORY_NAME"))?if_exists/>