From 8f53f30e029425b0e34863fe3fd88e84cac4f0dd Mon Sep 17 00:00:00 2001 From: Amaia Anabitarte Date: Tue, 23 Apr 2024 16:08:03 +0200 Subject: [PATCH] MDL-78433 course: Remove duplicated course search form --- course/search.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/course/search.php b/course/search.php index f0d9d625614..2b45b1d96c5 100644 --- a/course/search.php +++ b/course/search.php @@ -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));