mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-31814 question bank: fix possible error with sort columns.
This commit is contained in:
parent
e16e2300c5
commit
ad3b37cf87
@ -1141,6 +1141,8 @@ class quiz_question_bank_view extends question_bank_view {
|
||||
}
|
||||
|
||||
protected function default_sort() {
|
||||
$this->requiredcolumns['qtype'] = $this->knowncolumntypes['qtype'];
|
||||
$this->requiredcolumns['questionnametext'] = $this->knowncolumntypes['questionnametext'];
|
||||
return array('qtype' => 1, 'questionnametext' => 1);
|
||||
}
|
||||
|
||||
|
@ -1033,6 +1033,8 @@ class question_bank_view {
|
||||
}
|
||||
|
||||
protected function default_sort() {
|
||||
$this->requiredcolumns['qtype'] = $this->knowncolumntypes['qtype'];
|
||||
$this->requiredcolumns['questionname'] = $this->knowncolumntypes['questionname'];
|
||||
return array('qtype' => 1, 'questionname' => 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user