Skip to content

Commit

Permalink
MDL-15206 Fixed. My fault...
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Jun 11, 2008
1 parent ea39a99 commit e724b50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions question/type/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e724b50

Please sign in to comment.