- The back to site link generated after a CS post now leads back to the

thread if the new post is a reply to a thread as discussed in Community IRC.
This commit is contained in:
JT Smith 2006-05-25 00:35:10 +00:00
parent a7873aa34a
commit c263c91d65
2 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,8 @@
6.99.2
- Added UI Levels to asset toolbar icons, as discussed in Community IRC.
- Data Forms now send email as HTML.
- The back to site link generated after a CS post now leads back to the
thread if the new post is a reply to a thread as discussed in Community IRC.
- Added full drag bar to the top of each asset as discussed in Community IRC.
- fixed a bug in the project management app that was causing a no privilege error when trying to display the view.
- fixed various bugs in the project management app.

View file

@ -1135,7 +1135,13 @@ Shows a confirmation message letting the user know their post has been submitted
sub www_showConfirmation {
my $self = shift;
my $i18n = WebGUI::International->new($self->session, "Asset_Post");
return $self->getThread->getParent->processStyle('<p>'.$i18n->get("post received").'</p><p><a href="'.$self->getThread->getParent->getUrl.'">'.$i18n->get("493","WebGUI").'</a></p>');
my $url = undef;
if ($self->isReply) {
$url = $self->getThread->getUrl;
} else {
$url = $self->getThread->getParent->getUrl;
}
return $self->getThread->getParent->processStyle('<p>'.$i18n->get("post received").'</p><p><a href="'.$url.'">'.$i18n->get("493","WebGUI").'</a></p>');
}