svn commit: r1851002 - /ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/CategoryDetail.ftl

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

svn commit: r1851002 - /ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/CategoryDetail.ftl

Deepak Dixit-5
Author: deepak
Date: Fri Jan 11 05:59:42 2019
New Revision: 1851002

URL: http://svn.apache.org/viewvc?rev=1851002&view=rev
Log:
Fixed: Page dropdown list on categorydetail page broken
(OFBIZ-10787)
Thanks Sebastian Wachinger for reporting the issue.
Corrected the condition to display pagination options

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/CategoryDetail.ftl

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/CategoryDetail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/CategoryDetail.ftl?rev=1851002&r1=1851001&r2=1851002&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/CategoryDetail.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/catalog/CategoryDetail.ftl Fri Jan 11 05:59:42 2019
@@ -48,7 +48,7 @@
       <div class="product-prevnext px-2 py-1">
         <select name="pageSelect" onchange="callDocumentByPaginate(this[this.selectedIndex].value);" class="form-control">
           <option value="#">${uiLabelMap.CommonPage} ${viewIndex?int + 1} ${uiLabelMap.CommonOf} ${viewIndexMax}</option>
-          <#if (viewIndex?int > 1)>
+          <#if (viewIndexMax?int > 1)>
             <#list 1..viewIndexMax as curViewNum>
               <option value="${productCategoryId}~${viewSize}~${curViewNum-1?int}">${uiLabelMap.CommonGotoPage} ${curViewNum}</option>
             </#list>