mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
1c2ed7c501
commit
d4d64ee3f1
2 changed files with 815 additions and 800 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue