fixed [ 832284 ] Pagination in Messageboard with Search
This commit is contained in:
parent
6f0d3d2836
commit
f9661ed755
3 changed files with 4 additions and 2 deletions
|
|
@ -19,6 +19,7 @@
|
|||
- Fixed bug [ 837143 ] Pagination broken on Survey report
|
||||
- Fixed bug [ 831331 ] translation errors
|
||||
- Fixed bug [ 834792 ] Karma Decay triggers SQL error
|
||||
- Fixed bug [ 832284 ] Pagination broken in Messageboard with Search
|
||||
|
||||
|
||||
5.5.0
|
||||
|
|
|
|||
|
|
@ -2057,7 +2057,7 @@ sub www_search {
|
|||
$var{'post.user.label'} = WebGUI::International::get(244);
|
||||
my $query = "select forumPostId,subject,userId,username,dateOfPost from forumPost where (status='approved' or status='archived') and ";
|
||||
$query .= WebGUI::Search::buildConstraints([qw(subject username message)]);
|
||||
my $p = WebGUI::Paginator->new(WebGUI::URL::append($caller->{callback},"forumOp=search&forumId=".$forum->get("forumId")),"", $numResults);
|
||||
my $p = WebGUI::Paginator->new(WebGUI::URL::append($caller->{callback},"forumOp=search&doit=1&forumId=".$forum->get("forumId")),"", $numResults);
|
||||
$p->setDataByQuery($query);
|
||||
my @post_loop;
|
||||
foreach my $row (@{$p->getPageData}) {
|
||||
|
|
|
|||
|
|
@ -169,7 +169,8 @@ sub www_view {
|
|||
my ($title, $description);
|
||||
if ($session{form}{forumId} ne "") {
|
||||
($title,$description) = WebGUI::SQL->quickArray("select title,description from MessageBoard_forums where forumId=".$session{form}{forumId});
|
||||
$callback = WebGUI::URL::append("forumId=".$session{form}{forumId});
|
||||
my $forumParam = "forumId=".$session{form}{forumId};
|
||||
$callback = WebGUI::URL::append($callback,$forumParam);
|
||||
}
|
||||
return WebGUI::Forum::UI::forumOp($callback,$title,$description);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue