MDL-31814 question bank: fix possible error with sort columns.

This commit is contained in:
Tim Hunt
2012-05-04 17:30:24 +01:00
parent 8075bd8d8a
commit 57f2278c69
2 changed files with 4 additions and 0 deletions
+2
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);
}