[jboss-svn-commits] JBL Code SVN: r16475 - labs/jbossforums/branches/forums110P26/forums/src/main/org/jboss/portlet/forums/ui/action.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Nov 9 12:35:40 EST 2007


Author: unibrew
Date: 2007-11-09 12:35:40 -0500 (Fri, 09 Nov 2007)
New Revision: 16475

Modified:
   labs/jbossforums/branches/forums110P26/forums/src/main/org/jboss/portlet/forums/ui/action/AdminController.java
Log:
[JBFORUMS-259] Actions in AdminPanel repaired.

Modified: labs/jbossforums/branches/forums110P26/forums/src/main/org/jboss/portlet/forums/ui/action/AdminController.java
===================================================================
--- labs/jbossforums/branches/forums110P26/forums/src/main/org/jboss/portlet/forums/ui/action/AdminController.java	2007-11-09 17:35:08 UTC (rev 16474)
+++ labs/jbossforums/branches/forums110P26/forums/src/main/org/jboss/portlet/forums/ui/action/AdminController.java	2007-11-09 17:35:40 UTC (rev 16475)
@@ -59,8 +59,8 @@
     /**
      * ui data associated with selecting a category to perform a certain operation
      */
-    private int selectedCategory = 0;    
-    private int selectedForum = 0;
+    private int selectedCategory = -1;    
+    private int selectedForum = -1;
     
     /**
      * flags telling in what mode should the view be displayed
@@ -168,8 +168,8 @@
         this.categoryName = null;
         this.forumName = null;
         this.forumDescription = null;
-        this.selectedCategory = 0;
-        this.selectedForum = 0;
+        this.selectedCategory = -1;
+        this.selectedForum = -1;
         this.editCategoryMode = false;
         this.editForumMode = false;
     }
@@ -232,13 +232,13 @@
             String editCatStr = ForumUtil.getParameter(Constants.EDIT_CATEGORY);
             if (editCatStr != null && editCatStr.trim().length()>0)
             {
-                this.editCategoryMode = Boolean.getBoolean(editCatStr);
+                this.editCategoryMode = Boolean.valueOf(editCatStr).booleanValue();
             }
             
             String editForStr = ForumUtil.getParameter(Constants.EDIT_FORUM);
             if (editForStr != null && editForStr.trim().length()>0)
             {
-                this.editForumMode = Boolean.getBoolean(editForStr);
+                this.editForumMode = Boolean.valueOf(editForStr).booleanValue();
             }
         }
         catch(Exception e)




More information about the jboss-svn-commits mailing list