Permalink
Browse files

MDL-31731 Grading form Marking Guide - fix for test 6.2, checkboxes n…

…ot saving state when clearing both.
  • Loading branch information...
1 parent 7714321 commit e529ec8c09613b10085f249b439fe749ddbf5491 @danmarsden danmarsden committed May 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 grade/grading/form/guide/renderer.php
@@ -388,6 +388,7 @@ protected function guide_edit_options($mode, $options) {
$html = html_writer::start_tag('div', array('class' => 'options'));
$html .= html_writer::tag('div', get_string('guideoptions', 'gradingform_guide'), array('class' => 'optionsheading'));
$attrs = array('type' => 'hidden', 'name' => '{NAME}[options][optionsset]', 'value' => 1);
+ $html .= html_writer::empty_tag('input', $attrs);
foreach ($options as $option => $value) {
$html .= html_writer::start_tag('div', array('class' => 'option '.$option));
$attrs = array('name' => '{NAME}[options]['.$option.']', 'id' => '{NAME}-options-'.$option);

0 comments on commit e529ec8

Please sign in to comment.