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:
@@ -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) {
|
||||
|
||||
+814
-796
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user