Bugfix [ 884375 ] Fix for multiple forum posts caused by browser refresh:
applied to www_viewForum to handle postings that start a new thread.
This commit is contained in:
parent
0efcea5c49
commit
dc41a0c9ae
2 changed files with 8 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
6.0.2
|
||||
- Fixed a bug where visitor contributed items in the USS were editable by all
|
||||
visitors.
|
||||
- Bugfix [ 884375 ] Fix for multiple forum posts applied also to
|
||||
www_viewForum to handle postings that start a new thread.
|
||||
|
||||
|
||||
6.0.1
|
||||
|
|
|
|||
|
|
@ -2276,6 +2276,12 @@ sub www_viewForum {
|
|||
my ($caller, $forumId) = @_;
|
||||
WebGUI::Session::setScratch("forumSortBy",$session{form}{sortBy});
|
||||
$forumId = $session{form}{forumId} unless ($forumId);
|
||||
# if POST, cause redirect, so new post is displayed using GET instead of POST
|
||||
if ($session{env}{REQUEST_METHOD} =~ /POST/i) {
|
||||
my $url= formatForumURL($caller->{callback}, $forumId);
|
||||
$session{header}{redirect} = WebGUI::Session::httpRedirect($url);
|
||||
return "";
|
||||
}
|
||||
my $forum = WebGUI::Forum->new($forumId);
|
||||
return WebGUI::Privilege::insufficient() unless ($forum->canView);
|
||||
my $var = getForumTemplateVars($caller, $forum);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue