From 46bb4e9c0a06b305c3a126444945ccc4fc851f0c Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 15 Nov 2003 23:07:11 +0000 Subject: [PATCH] fixed [ 828071 ] USS doubles the number of replies --- docs/changelog/5.x.x.txt | 1 + lib/WebGUI/Forum/Post.pm | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index d925be00b..1991e9f5c 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -2,6 +2,7 @@ - Fixed bug #829806 preventing users from updating thier passwords from the updateAccount form. - Added Apache 2 instructions to install.txt. (Thanks to Andy Grundman.) - Fixed bug [ 831628 ] Subscription notifications sent in wrong language. + - Fixed bug [ 828071 ] USS doubles the number of replies 5.5.0 - Rewrote the discussion system and added many new features in the process. diff --git a/lib/WebGUI/Forum/Post.pm b/lib/WebGUI/Forum/Post.pm index 3d8812422..792ad7ec6 100644 --- a/lib/WebGUI/Forum/Post.pm +++ b/lib/WebGUI/Forum/Post.pm @@ -102,11 +102,6 @@ sub create { $data->{forumPostId} = "new"; my $forumPostId = WebGUI::SQL->setRow("forumPost","forumPostId", $data); $self = WebGUI::Forum::Post->new($forumPostId); - if ($self->getThread->getForum->get("moderatePosts")) { - $self->setStatusPending; - } else { - $self->setStatusApproved; - } return $self; }