Permalink
Browse files

MDL-15206 Fixed. My fault...

  • Loading branch information...
1 parent ea39a99 commit e724b50ea059b462551ada13a82dc5425c95c62e nicolasconnault committed Jun 11, 2008
Showing with 4 additions and 2 deletions.
  1. +4 −2 question/type/questiontype.php
@@ -101,7 +101,9 @@ function extra_question_fields() {
*
* @return mixed array as above, or null to tell the base class to do nothing.
*/
-
+ function extra_answer_fields() {
+ return null;
+ }
/**
* Return an instance of the question editing form definition. This looks for a
@@ -1597,7 +1599,7 @@ function generate_test($name, $courseid=null) {
$context = get_context_instance(CONTEXT_COURSE, $courseid);
$newcategory = question_make_default_categories(array($context));
- $form->category = $newcategory->id;
+ $form->category = $newcategory->id . ',1';
$question = new stdClass();
$question->courseid = $courseid;

0 comments on commit e724b50

Please sign in to comment.