[jboss-svn-commits] JBL Code SVN: r11424 - labs/jbossforums/branches/forums101P26/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:58:00 EDT 2007
Author: unibrew
Date: 2007-04-27 19:58:00 -0400 (Fri, 27 Apr 2007)
New Revision: 11424
Modified:
labs/jbossforums/branches/forums101P26/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/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java 2007-04-27 19:24:49 UTC (rev 11423)
+++ labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/action/DeletePost.java 2007-04-27 23:58:00 UTC (rev 11424)
@@ -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