mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
MDL-46805 scorm: Set user_id if scorm|aiccuserid config is set
This commit is contained in:
parent
7ceee32454
commit
e43bf473fa
@ -111,7 +111,11 @@ if (!empty($command)) {
|
||||
$userdata->status = '';
|
||||
$userdata->score_raw = '';
|
||||
}
|
||||
$userdata->student_id = $aiccuser->username;
|
||||
if (!empty($cfg_scorm->aiccuserid)) {
|
||||
$userdata->student_id = $aiccuser->id;
|
||||
} else {
|
||||
$userdata->student_id = $aiccuser->username;
|
||||
}
|
||||
$userdata->student_name = $aiccuser->lastname .', '. $aiccuser->firstname;
|
||||
$userdata->mode = $mode;
|
||||
if ($userdata->mode == 'normal') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user