From 0fa01f4e60019b7d9ff8f7b7f71886b0f7dd45b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Fri, 7 Jun 2013 22:07:15 +0200 Subject: [PATCH] MDL-39549 fix cohort search in course categories --- cohort/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cohort/index.php b/cohort/index.php index 38ecfe6a474..3c31556f132 100644 --- a/cohort/index.php +++ b/cohort/index.php @@ -86,6 +86,7 @@ $search .= html_writer::start_tag('div'); $search .= html_writer::label(get_string('searchcohort', 'cohort'), 'cohort_search_q'); // No : in form labels! $search .= html_writer::empty_tag('input', array('id'=>'cohort_search_q', 'type'=>'text', 'name'=>'search', 'value'=>$searchquery)); $search .= html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('search', 'cohort'))); +$search .= html_writer::empty_tag('input', array('type'=>'hidden', 'name'=>'contextid', 'value'=>$contextid)); $search .= html_writer::end_tag('div'); $search .= html_writer::end_tag('form'); echo $search;