Skip to content

Commit

Permalink
Fix #456 use fullname() api.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Jul 7, 2020
1 parent 916bdf2 commit c413580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion student_attendance_form.php
Expand Up @@ -97,7 +97,7 @@ public function definition() {
$radioarray[] =& $mform->createElement('static', '', '', $warning);
}
// Add the radio buttons as a control with the user's name in front.
$radiogroup = $mform->addGroup($radioarray, 'statusarray', $USER->firstname.' '.$USER->lastname.':', array(''), false);
$radiogroup = $mform->addGroup($radioarray, 'statusarray', fullname($USER).':', array(''), false);
$radiogroup->setAttributes(array('class' => 'statusgroup'));
$mform->addRule('statusarray', get_string('attendancenotset', 'attendance'), 'required', '', 'client', false, false);
}
Expand Down

2 comments on commit c413580

@mnasruul
Copy link

@mnasruul mnasruul commented on c413580 Sep 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hy @danmarsden, how do i use this issue for MOODLE version 3.8, thanks

@danmarsden
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mnasruul Please make sure you are using the latest version of attendance for your Moodle release - either by downloading from the moodle.org plugins db or check the readme in github here for the correct git branch for your release.

Please sign in to comment.