Merge branch 'MDL-69902-310' of https://github.com/marinaglancy/moodle into MOODLE_31...
authorJake Dallimore <jake@moodle.com>
Wed, 21 Oct 2020 02:57:35 +0000 (10:57 +0800)
committerJake Dallimore <jake@moodle.com>
Wed, 21 Oct 2020 02:57:35 +0000 (10:57 +0800)
course/classes/search/customfield.php

index 1d62aac..19fa1c2 100644 (file)
@@ -66,7 +66,7 @@ class customfield extends \core_search\base {
         if (!$fields) {
             $fields = array();
         }
-        list($fieldsql, $fieldparam) = $DB->get_in_or_equal(array_keys($fields), SQL_PARAMS_NAMED, 'fld', true, true);
+        list($fieldsql, $fieldparam) = $DB->get_in_or_equal(array_keys($fields), SQL_PARAMS_NAMED, 'fld', true, 0);
 
         // Restrict recordset to CONTEXT_COURSE (since we are implementing it to core_course\search).
         $sql = "SELECT d.*