mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-83710 report_questioninstances: fix missing type query params.
This commit is contained in:
parent
2b337b49f9
commit
01b145a5bb
@ -69,8 +69,10 @@ if ($requestedqtype) {
|
||||
$othertypes = array_keys($qtypes);
|
||||
$key = array_search('missingtype', $othertypes);
|
||||
unset($othertypes[$key]);
|
||||
list($sqlqtypetest, $params) = $DB->get_in_or_equal($othertypes, SQL_PARAMS_QM, '', false);
|
||||
|
||||
[$sqlqtypetest, $sqlqtypetestparams] = $DB->get_in_or_equal($othertypes, SQL_PARAMS_QM, '', false);
|
||||
$sqlqtypetest = 'WHERE qtype ' . $sqlqtypetest;
|
||||
$params = array_merge($params, $sqlqtypetestparams);
|
||||
|
||||
} else if ($requestedqtype == '_all_') {
|
||||
$title = get_string('reportforallqtypes', 'report_questioninstances');
|
||||
|
Loading…
x
Reference in New Issue
Block a user