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

@ -21,6 +21,8 @@
- fix [ 1170264 ] can't copy file
- fix [ 1170242 ] cs email url
- fix [ 1171110 ] nav ancestor
- fix [ 1171574 ] purgeList doesn't purgeList
- fix [ 1170244 ] cs notification
6.5.4

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');
}
}