Merge branch 'MDL-78433-404' of https://github.com/aanabit/moodle into MOODLE_404_STABLE

This commit is contained in:
Huong Nguyen 2024-04-26 16:19:53 +07:00
commit 95a5cb8038
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -94,10 +94,8 @@ if (empty($searchcriteria)) {
if ((can_edit_in_category() || !empty($usercatlist))) {
$aurl = new moodle_url('/course/management.php', $searchcriteria);
$searchform = $OUTPUT->single_button($aurl, get_string('managecourses'), 'get');
} else {
$searchform = $courserenderer->course_search_form($search);
$PAGE->set_button($searchform);
}
$PAGE->set_button($searchform);
// Trigger event, courses searched.
$eventparams = array('context' => $PAGE->context, 'other' => array('query' => $search));