fixed [ 1170244 ] cs notification

This commit is contained in:
JT Smith 2005-03-28 01:05:35 +00:00
parent 5cbf19993b
commit 27a72d5c65
2 changed files with 9 additions and 3 deletions

View file

@ -768,9 +768,13 @@ Sets the status of this post to pending.
sub setStatusPending {
my ($self) = @_;
$self->update({status=>'pending'});
WebGUI::MessageLog::addInternationalizedEntry('',$self->getThread->getParent->get("moderateGroupId"),
$self->getUrl("func=view"),578,'WebGUI','pending');
if (WebGUI::Grouping::isInGroup($self->getThread->getParent->get("moderateGroupId"))) {
$self->setStatusApproved;
} else {
$self->update({status=>'pending'});
WebGUI::MessageLog::addInternationalizedEntry('',$self->getThread->getParent->get("moderateGroupId"),
$self->getUrl("func=view"),578,'WebGUI','pending');
}
}