MDL-78433 course: Remove duplicated course search form

This commit is contained in:
Amaia Anabitarte
2024-04-23 16:08:03 +02:00
parent 7b9a4eeca5
commit 93bf8539ca
+1 -3
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));