Merge branch 'MDL-31814' of git://github.com/timhunt/moodle

This commit is contained in:
Dan Poltawski 2012-05-17 14:11:14 +08:00
commit aa141671a3
2 changed files with 4 additions and 0 deletions

View File

@ -1139,6 +1139,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);
}

View File

@ -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);
}