}
$wrapped->name = $question->name;
$wrapped->parent = $question->id;
- $wrapped->category = $question->category;
+ $wrapped->category = $question->category . ',1'; // save_question strips this extra bit off again.
$wrapped = $QTYPES[$wrapped->qtype]->save_question($wrapped,
$wrapped, $question->course);
$sequence[] = $wrapped->id;
}
} else { // Question is a new one
// Set the unique code
- list($question->category,$contextid) = explode(',', $form->category);
+ list($question->category,$notused) = explode(',', $form->category);
$question->stamp = make_unique_id_code();
$question->createdby = $USER->id;
$question->timecreated = time();