mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-19210 using the get_database_dataset_items() function
This commit is contained in:
parent
a2155a7b74
commit
66d0a55c56
@ -55,10 +55,7 @@ class question_dataset_dependent_items_form extends moodleform {
|
||||
}
|
||||
foreach ($this->datasetdefs as $defid => $datasetdef) {
|
||||
if (isset($datasetdef->id)) {
|
||||
$this->datasetdefs[$defid]->items = $DB->get_records_sql( // Use number as key!!
|
||||
" SELECT itemnumber, definition, id, value
|
||||
FROM {question_dataset_items}
|
||||
WHERE definition = ? ", array($datasetdef->id));
|
||||
$this->datasetdefs[$defid]->items = $this->qtypeobj->get_database_dataset_items($datasetdef->id);
|
||||
}
|
||||
}
|
||||
parent::moodleform($submiturl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user