[jboss-svn-commits] JBL Code SVN: r20172 - labs/jbossforums/branches/forums110P22/forums/src/main/org/jboss/portlet/forums/ui/view.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon May 26 18:08:42 EDT 2008


Author: dejp
Date: 2008-05-26 18:08:42 -0400 (Mon, 26 May 2008)
New Revision: 20172

Modified:
   labs/jbossforums/branches/forums110P22/forums/src/main/org/jboss/portlet/forums/ui/view/ViewForum.java
Log:
JBFORUMS-278

Modified: labs/jbossforums/branches/forums110P22/forums/src/main/org/jboss/portlet/forums/ui/view/ViewForum.java
===================================================================
--- labs/jbossforums/branches/forums110P22/forums/src/main/org/jboss/portlet/forums/ui/view/ViewForum.java	2008-05-26 20:02:14 UTC (rev 20171)
+++ labs/jbossforums/branches/forums110P22/forums/src/main/org/jboss/portlet/forums/ui/view/ViewForum.java	2008-05-26 22:08:42 UTC (rev 20172)
@@ -118,7 +118,7 @@
         try {
             announcements = BaseController.getForumsModule().findTopicsDesc(forum,
                     Constants.POST_ANNOUNCE,
-                    -1,
+                    0,
                     Integer.MAX_VALUE);
         } catch (Exception e) {
             JSFUtil.handleException(e);
@@ -143,7 +143,7 @@
         try {
             announcements = BaseController.getForumsModule().findTopicsDesc(forum,
                     Constants.POST_ANNOUNCE,
-                    -1,
+                    0,
                     Integer.MAX_VALUE);
             if (announcements!=null && announcements.size()>0) {
                 present = true;
@@ -171,7 +171,7 @@
             //ForumsModule fm = this.getForumsModule();
             stickyThreads = BaseController.getForumsModule().findTopicsDesc(forum,
                             Constants.POST_STICKY,
-                            -1,
+                            0,
                             Integer.MAX_VALUE);
         } catch (Exception e) {
             JSFUtil.handleException(e);
@@ -199,7 +199,7 @@
         try {
             stickyThreads = BaseController.getForumsModule().findTopicsDesc(forum,
                             Constants.POST_STICKY,
-                            -1,
+                            0,
                             Integer.MAX_VALUE);
             if (stickyThreads!=null && stickyThreads.size()>0) {
                 present = true;




More information about the jboss-svn-commits mailing list