From a2b400a2651ebe44474583fb7b3ba7a094abbbaf Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sun, 6 Sep 2009 19:04:43 +0000 Subject: [PATCH] A suggested fix by Ruth Hoffman at "categorydetail.ftl page select drop-down and pagination is not compatible with new screen called categorydetailmatrix.ftl. [Screen uses 3 columns per row to display products vs 1 column per row from older versions.]" (https://issues.apache.org/jira/browse/OFBIZ-2596) - OFBIZ-2596 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811860 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/ordermgr/entry/catalog/categorydetail.ftl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl b/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl index e325b603c7..cde9f8a2e9 100644 --- a/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl +++ b/applications/order/webapp/ordermgr/entry/catalog/categorydetail.ftl @@ -19,7 +19,11 @@ under the License. <#macro paginationControls> <#assign viewIndexMax = Static["java.lang.Math"].ceil((listSize - 1)?double / viewSize?double)> - <#if (viewIndexMax?int > 1)> + <#-- if the list size/view size (that is total number of items allowed on the page for this page) + is 0 or 1 then there is only 1 page of items - so display the pagination drop down anyhow + 'cause its cool and people should see it. + --> + <#if (viewIndexMax?int > -1)>
<#-- Start Page Select Drop-Down -->