Skip to content

Commit

Permalink
global search MDL-24625 setting groupid to 0 for indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
nebgor committed Nov 2, 2010
1 parent f776e22 commit 55c5882
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions search/documents/forum_document.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ function forum_single_document($id, $itemtype) {
if ($cm){
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
$post->groupid = $discussion->groupid;
// temporary fix until MDL-24822 is resolved.
if ($post->groupid == -1) {
$post->groupid = 0;
}
return new ForumSearchDocument(get_object_vars($post), $discussion->forum, $discussion->course, $itemtype, $context->id);
}
return null;
Expand Down

0 comments on commit 55c5882

Please sign in to comment.