Permalink
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 f19cd42.
  • Loading branch information...
1 parent 4697c46 commit 9f7f501c0a400dccf8aa4c1228a0559e60f7a409 Sam Hemelryk committed Jul 12, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 mod/choice/renderer.php
View
@@ -214,15 +214,14 @@ 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));
$data .= html_writer::tag('div', $userimage, array('class'=>'image'));
$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'));

0 comments on commit 9f7f501

Please sign in to comment.