updating discussion

This commit is contained in:
JT Smith 2003-10-04 21:59:54 +00:00
parent 911bf4a079
commit 4b66502e4c
3 changed files with 60 additions and 16 deletions

View file

@ -19,7 +19,7 @@ sub create {
my $forumPostId = WebGUI::SQL->setRow("forumPost","forumPostId", $data);
$self = WebGUI::Forum::Post->new($forumPostId);
if ($data->{parentId} > 0) {
$self->getThread->addReply($forumPostId,$self->get("dateOfPost"),$self->get("forumPostId"));
$self->getThread->addReply($self->get("forumPostId"),$forumPostId,$self->get("dateOfPost"));
}
return $self;
}