Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-33575_m22' of git://github.com/rwijaya/moodle into …

…MOODLE_22_STABLE
  • Loading branch information...
commit bff217f18b095e3dfc56912ceba41ba54fbf342a 2 parents 6fb835d + f014bd2
@samhemelryk samhemelryk authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/choice/renderer.php
View
6 mod/choice/renderer.php
@@ -213,15 +213,17 @@ public function display_publish_name_vertical($choices) {
$user->imagealt = '';
}
+ $userfullname = fullname($user, $choices->fullnamecapability);
if ($choices->viewresponsecapability && $choices->deleterepsonsecapability && $optionid > 0) {
- $attemptaction = html_writer::checkbox('attemptid[]', $user->id,'');
+ $attemptaction = html_writer::label($userfullname, 'attempt-user'.$user->id, false, array('class' => 'accesshide'));
+ $attemptaction .= html_writer::checkbox('attemptid[]', $user->id,'', null, array('id' => 'attempt-user'.$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::tag('a', $userfullname, array('href'=>$userlink, 'class'=>'username'));
$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.