diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 79ff61d70..b78e31e77 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -813,13 +813,13 @@ Sets the post to approved and sends any necessary notifications. sub setStatusApproved { my $self = shift; - $self->commit; - $self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply && ($session{form}{assetId} eq -"new")); - unless ($self->isPoster) { - WebGUI::MessageLog::addInternationalizedEntry($self->get("ownerUserId"),'',$self->session->url->getSiteURL().'/'.$self->getUrl,579); - } - $self->notifySubscribers unless ($self->session->form->process("func") eq 'add'); + $self->commit; + $self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply && ($session->form->process('assetId') eq + "new")); + unless ($self->isPoster) { + WebGUI::MessageLog::addInternationalizedEntry($self->get("ownerUserId"),'',$self->session->url->getSiteURL().'/'.$self->getUrl,579); + } + $self->notifySubscribers unless ($self->session->form->process("func") eq 'add'); }