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 b66a680.
  • Loading branch information...
1 parent c54cd37 commit 18889e0e78d8c2e5e44e6d9c521dd9df899ad9e2 Sam Hemelryk committed Jul 12, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 mod/choice/renderer.php
View
3 mod/choice/renderer.php
@@ -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 18889e0

Please sign in to comment.