Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "MDL-33575 choice module: add label to checkbox element when p…

…rivacy of results is set to publish full results"

This reverts commit ccef0a8.
  • Loading branch information...
commit bdbe35e740ced16e2aacb7c4c134e05623a8a002 1 parent 4000115
@samhemelryk samhemelryk authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  mod/choice/renderer.php
View
3  mod/choice/renderer.php
@@ -214,7 +214,7 @@ public function display_publish_name_vertical($choices) {
}
if ($choices->viewresponsecapability && $choices->deleterepsonsecapability && $optionid > 0) {
- $attemptaction = html_writer::checkbox('attemptid[]', $user->id,'', null, array('id' => 'attempt-user'.$user->id));
+ $attemptaction = html_writer::checkbox('attemptid[]', $user->id,'');
$data .= html_writer::tag('div', $attemptaction, array('class'=>'attemptaction'));
}
$userimage = $this->output->user_picture($user, array('courseid'=>$choices->courseid));
@@ -222,7 +222,6 @@ public function display_publish_name_vertical($choices) {
$userlink = new moodle_url('/user/view.php', array('id'=>$user->id,'course'=>$choices->courseid));
$name = html_writer::tag('a', fullname($user, $choices->fullnamecapability), array('href'=>$userlink, 'class'=>'username'));
- $name = html_writer::label($name, 'attempt-user'.$user->id);
$data .= html_writer::tag('div', $name, array('class'=>'fullname'));
$data .= html_writer::tag('div','', array('class'=>'clearfloat'));
$optionusers .= html_writer::tag('div', $data, array('class'=>'user'));
Please sign in to comment.
Something went wrong with that request. Please try again.