Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes reference id for label record in search index

  • Loading branch information...
commit 323a266cf58bb067c89dd414cf0239b03023fddb 1 parent 85203af
diml authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  search/documents/label_document.php
View
2  search/documents/label_document.php
@@ -29,7 +29,7 @@
class LabelSearchDocument extends SearchDocument {
public function __construct(&$label, $context_id) {
// generic information; required
- $doc->docid = $label['course'];
+ $doc->docid = $label['id'];
$doc->documenttype = SEARCH_TYPE_LABEL;
$doc->itemtype = 'label';
$doc->contextid = $context_id;
Please sign in to comment.
Something went wrong with that request. Please try again.