mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-15102 $questionid is the id so array($questionid) line 337
This commit is contained in:
parent
d2364673a9
commit
fbcd080be9
@ -334,7 +334,7 @@ class question_dataset_dependent_questiontype extends default_questiontype {
|
||||
WHERE d.question = ?
|
||||
AND d.datasetdefinition = i.id
|
||||
";
|
||||
if ($records = $DB->get_records_sql($sql, array($questionid->id))) {
|
||||
if ($records = $DB->get_records_sql($sql, array($questionid))) {
|
||||
foreach ($records as $r) {
|
||||
$datasetdefs["$r->type-$r->category-$r->name"] = $r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user