MDL-20636 Bug 11406 Opaque gives radio groups name _rg by default, which QE cannot handle.

As a work around, we specifically look for this variable, and if it is present, include it in the sumbitted data.
This commit is contained in:
Tim Hunt 2011-01-24 14:54:21 +00:00
parent 1c2ed7c501
commit d4d64ee3f1
2 changed files with 815 additions and 800 deletions

View file

@ -105,12 +105,9 @@ class qbehaviour_opaque extends question_behaviour {
} else if ($step->has_behaviour_var('comment')) {
return $this->summarise_manual_comment($step);
} else {
$data = $step->get_qt_data();
$data = qtype_opaque_get_submitted_data($step);
$formatteddata = array();
foreach ($data as $name => $value) {
if (substr($name, 0, 1) == '_') {
continue;
}
$formatteddata[] = $name . ' => ' . s($value);
}
if ($formatteddata) {

File diff suppressed because it is too large Load diff