From c886694eb574356eb1a6eaf5480fb4b93bd58a63 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 22 Nov 2003 15:52:50 +0000 Subject: [PATCH] fixed a bug reported on the site discussions --- docs/changelog/5.x.x.txt | 2 ++ lib/WebGUI/Forum/Thread.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index f05c7a851..51ed7e933 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -1,6 +1,8 @@ 5.5.3 - Lowercase file extension in importCollateral.pl while determinating file type. + - Fixed a typo in the Forum Threads that caused an error upon deleting a + post. 5.5.2 diff --git a/lib/WebGUI/Forum/Thread.pm b/lib/WebGUI/Forum/Thread.pm index a42fd52ab..51de8d867 100644 --- a/lib/WebGUI/Forum/Thread.pm +++ b/lib/WebGUI/Forum/Thread.pm @@ -110,7 +110,7 @@ Decrements the replies counter for this thread. =cut -sub deccrementReplies { +sub decrementReplies { my ($self) = @_; WebGUI::SQL->write("update forumThread set replies=replies-1 where forumThreadId=".$self->get("forumThreadId")); $self->getForum->decrementReplies;