Merge branch 'MDL-75276-fix' of https://github.com/sarjona/moodle

This commit is contained in:
Jun Pataleta 2022-10-05 19:43:04 +08:00
commit ced9afd781

View File

@ -244,7 +244,7 @@ class manager {
public function get_field_records() {
global $DB;
if ($this->_fieldrecords === null) {
$this->_fieldrecords = $DB->get_records('data_fields', ['dataid' => $this->instance->id]);
$this->_fieldrecords = $DB->get_records('data_fields', ['dataid' => $this->instance->id], 'id');
}
return $this->_fieldrecords;
}