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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Apr 27 19:59:50 EDT 2007


Author: unibrew
Date: 2007-04-27 19:59:50 -0400 (Fri, 27 Apr 2007)
New Revision: 11426

Modified:
   labs/jbossforums/branches/forums101P22/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java
Log:
[JBFORUMS-211] Solved problem with deleting posts on ViewTopic view.

Modified: labs/jbossforums/branches/forums101P22/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java
===================================================================
--- labs/jbossforums/branches/forums101P22/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java	2007-04-27 23:59:16 UTC (rev 11425)
+++ labs/jbossforums/branches/forums101P22/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java	2007-04-27 23:59:50 UTC (rev 11426)
@@ -87,7 +87,7 @@
 	        {
 	            isLastPost = true;
 	        }
-	        
+                
 	        //now perform the actual delete operation.........................
 	        if (isLastPost && isFirstPost)
 	        {
@@ -96,9 +96,7 @@
 	            // the watches
 	            // the poll
 	            // the links	            
-	            this.getForumsModule().removeTopic(post.getTopic());
-	            forum.setPostCount(forum.getPostCount() - 1);
-	            forum.setTopicCount(forum.getTopicCount() - 1);	 
+	            this.getForumsModule().removeTopic(post.getTopic());	 
 	            
 	            //set the proper navigation state
 	            navState = Constants.TOPIC_DELETED;




More information about the jboss-svn-commits mailing list