diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index 4f27abbbe..eae457c00 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -3,6 +3,8 @@ one forum in a message board. - Fixed a bug introduced in the last version when replying to USS submissions. + - Fixed a bug introduced in 5.5.0 because the reply.url variable in the USS + submission template didn't get updated to reflect the new forum system. 5.5.1 diff --git a/lib/WebGUI/Wobject/USS.pm b/lib/WebGUI/Wobject/USS.pm index d7d0d2d8a..7c45b6edf 100644 --- a/lib/WebGUI/Wobject/USS.pm +++ b/lib/WebGUI/Wobject/USS.pm @@ -598,7 +598,7 @@ sub www_viewSubmission { $var{"deny.url"} = WebGUI::URL::page('func=denySubmission&wid='.$session{form}{wid}.'&sid='.$session{form}{sid}.'&mlog='.$session{form}{mlog}); $var{"deny.label"} = WebGUI::International::get(574); $var{"canReply"} = ($_[0]->get("allowDiscussion")); - $var{"reply.url"} = WebGUI::URL::page('func=post&mid=new&wid='.$_[0]->get("wobjectId").'&sid='.$session{form}{sid}); + $var{"reply.url"} = WebGUI::Forum::UI::formatNewThreadURL($callback,$submission->{forumId}); $var{"reply.label"} = WebGUI::International::get(47,$_[0]->get("namespace")); $var{"search.url"} = WebGUI::Search::toggleURL(); $var{"search.label"} = WebGUI::International::get(364);