mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-40424-master' of git://github.com/FMCorz/moodle
Conflicts: admin/oacleanup.php
This commit is contained in:
commit
fb1788c598
18 changed files with 105 additions and 46 deletions
|
@ -277,8 +277,10 @@ class restore_course_search extends restore_search_base {
|
|||
protected function get_searchsql() {
|
||||
global $DB;
|
||||
|
||||
list($ctxselect, $ctxjoin) = context_instance_preload_sql('c.id', CONTEXT_COURSE, 'ctx');
|
||||
$ctxselect = ', ' . context_helper::get_preload_record_columns_sql('ctx');
|
||||
$ctxjoin = "LEFT JOIN {context} ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = :contextlevel)";
|
||||
$params = array(
|
||||
'contextlevel' => CONTEXT_COURSE,
|
||||
'fullnamesearch' => '%'.$this->get_search().'%',
|
||||
'shortnamesearch' => '%'.$this->get_search().'%',
|
||||
'siteid' => SITEID
|
||||
|
@ -326,8 +328,10 @@ class restore_category_search extends restore_search_base {
|
|||
protected function get_searchsql() {
|
||||
global $DB;
|
||||
|
||||
list($ctxselect, $ctxjoin) = context_instance_preload_sql('c.id', CONTEXT_COURSECAT, 'ctx');
|
||||
$ctxselect = ', ' . context_helper::get_preload_record_columns_sql('ctx');
|
||||
$ctxjoin = "LEFT JOIN {context} ctx ON (ctx.instanceid = c.id AND ctx.contextlevel = :contextlevel)";
|
||||
$params = array(
|
||||
'contextlevel' => CONTEXT_COURSECAT,
|
||||
'namesearch' => '%'.$this->get_search().'%',
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue