ajax MDL-23694 added missing page context which fixes groups ui ajax search
authorAparup Banerjee <nebgor@gmail.com>
Fri, 24 Sep 2010 03:57:13 +0000 (03:57 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Fri, 24 Sep 2010 03:57:13 +0000 (03:57 +0000)
user/selector/search.php

index 74cac94..7259956 100644 (file)
@@ -26,6 +26,7 @@
 require_once(dirname(__FILE__) . '/../../config.php');
 require_once($CFG->dirroot . '/user/selector/lib.php');
 
 require_once(dirname(__FILE__) . '/../../config.php');
 require_once($CFG->dirroot . '/user/selector/lib.php');
 
+$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
 $PAGE->set_url('/user/selector/search.php');
 
 // In developer debug mode, when there is a debug=1 in the URL send as plain text
 $PAGE->set_url('/user/selector/search.php');
 
 // In developer debug mode, when there is a debug=1 in the URL send as plain text