Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ceee32
)
MDL-46805 scorm: Set user_id if scorm|aiccuserid config is set
author
Rajesh Taneja
<rajesh@moodle.com>
Thu, 2 Apr 2015 07:27:21 +0000
(15:27 +0800)
committer
Eloy Lafuente (stronk7)
<stronk7@moodle.org>
Thu, 2 Apr 2015 09:09:29 +0000
(11:09 +0200)
mod/scorm/aicc.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/scorm/aicc.php
b/mod/scorm/aicc.php
index
1e0fbd9
..
ce176d9
100644
(file)
--- a/
mod/scorm/aicc.php
+++ b/
mod/scorm/aicc.php
@@
-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') {