[jboss-svn-commits] JBL Code SVN: r11429 - labs/jbossforums/branches/forums22/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 20:15:04 EDT 2007
Author: unibrew
Date: 2007-04-27 20:15:03 -0400 (Fri, 27 Apr 2007)
New Revision: 11429
Modified:
labs/jbossforums/branches/forums22/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/forums22/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java
===================================================================
--- labs/jbossforums/branches/forums22/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java 2007-04-28 00:02:16 UTC (rev 11428)
+++ labs/jbossforums/branches/forums22/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java 2007-04-28 00:15:03 UTC (rev 11429)
@@ -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