From c263c91d6598c437ca29e976082f602f784dd26f Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 25 May 2006 00:35:10 +0000 Subject: [PATCH] - 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. --- docs/changelog/6.x.x.txt | 2 ++ lib/WebGUI/Asset/Post.pm | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index 28ffe0049..74fcc6a5f 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -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. diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 334df745d..7f3e3de6c 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -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('

'.$i18n->get("post received").'

'.$i18n->get("493","WebGUI").'

'); + my $url = undef; + if ($self->isReply) { + $url = $self->getThread->getUrl; + } else { + $url = $self->getThread->getParent->getUrl; + } + return $self->getThread->getParent->processStyle('

'.$i18n->get("post received").'

'.$i18n->get("493","WebGUI").'

'); }