Merge branch 'master_MDL-62705_results_order_no_context' of https://github.com/mattporritt/moodle

This commit is contained in:
Andrew Nicols
2018-06-20 08:35:59 +08:00
+3 -2
View File
@@ -76,9 +76,10 @@ if ($contextid) {
$customdata['withincourseid'] = $coursecontext->instanceid;
}
// Get available ordering options from search engine.
$customdata['orderoptions'] = $search->get_engine()->get_supported_orders($context);
}
// Get available ordering options from search engine.
$customdata['orderoptions'] = $search->get_engine()->get_supported_orders($context);
$mform = new \core_search\output\form\search(null, $customdata);
$data = $mform->get_data();