-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.3
-
MOODLE_36_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-65777-master -
Replication steps
- Create account Samuel Student with alternate name 'Sammy'
- Navigate to Site admin>Permissions>User policies and set Alternative full name format to 'alternatename surname'
- Access any course and enrol Samuel Student
- Create an assignment with default settings
- Log in as Samuel Student and submit a file
- Return to admin view and view/grade all submissions
- From Grading action select Download all submissions
- View the file on your computer
Observed behaviour
File name is prefixed with 'Samuel Student'
Expected behaviour
File name is prefixed with 'Sammy Student'
Additional notes
- Same result regardless of downloading in folders or not
- Users with the viewfullnames capability are shown the 'Alternative full name' format everywhere else. Downloading submissions should be consistent with this
- Works as expected when modifying 'Full name format' in <site>/admin/settings.php?section=userpolicies. Suspect an extra check for the viewfullnames capability is needed prior to building the file/folder names.