Author: fpunt
Date: 2010-05-18 17:15:08 +0200 (Tue, 18 May 2010)
New Revision: 42225

Modified:
   
CMSContainer/trunk/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/ContentChannelPortlet.java
Log:
attempt to fix CMSC-1693

Modified: 
CMSContainer/trunk/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/ContentChannelPortlet.java
===================================================================
--- 
CMSContainer/trunk/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/ContentChannelPortlet.java
        2010-05-18 15:02:55 UTC (rev 42224)
+++ 
CMSContainer/trunk/CMSContainer/cmsc/portlets/src/java/com/finalist/cmsc/portlets/ContentChannelPortlet.java
        2010-05-18 15:15:08 UTC (rev 42225)
@@ -167,6 +167,7 @@
          int maxElements = Integer.parseInt(preferences.getValue(MAX_ELEMENTS, 
"-1"));
          if (maxElements <= 0) {
             maxElements = DEFAULT_MAX_ELEMENTS;
+            req.setAttribute(MAX_ELEMENTS, DEFAULT_MAX_ELEMENTS);
          }
          int elementsPerPage = 
Integer.parseInt(preferences.getValue(ELEMENTS_PER_PAGE, "-1"));
          if (elementsPerPage <= 0) {

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to