Skip to content

Commit

Permalink
MDL-27413 qtype_multianswer now works for all embedded types, I think.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed May 26, 2011
1 parent 7ac7977 commit dcedbb0
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 297 deletions.
2 changes: 1 addition & 1 deletion question/type/multianswer/question.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function get_expected_data() {
$substep = $this->get_substep(null, $i);
foreach ($subq->get_expected_data() as $name => $type) {
if ($subq->qtype->name() == 'multichoice' &&
$subq->layout = qtype_multichoice_base::LAYOUT_DROPDOWN) {
$subq->layout == qtype_multichoice_base::LAYOUT_DROPDOWN) {
// Hack or MC inline does not work.
$expected[$substep->add_prefix($name)] = PARAM_RAW;
} else {
Expand Down
2 changes: 2 additions & 0 deletions question/type/multianswer/questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

defined('MOODLE_INTERNAL') || die();

require_once($CFG->dirroot . '/question/type/multichoice/question.php');


/**
* The multi-answer question type class.
Expand Down
Loading

0 comments on commit dcedbb0

Please sign in to comment.