SCORM AICC MDL-31039 update external AICC url correctly - thanks to Albert Rhemrev for report/fix
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
04c2e6820d
commit
a607db6e70
+2
-1
@@ -181,7 +181,8 @@ function scorm_update_instance($scorm, $mform=null) {
|
||||
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_IMSREPOSITORY) {
|
||||
$scorm->reference = $scorm->packageurl;
|
||||
|
||||
} else if ($scorm->scormtype === SCORM_TYPE_AICCURL) {
|
||||
$scorm->reference = $scorm->packageurl;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -369,6 +369,7 @@ class mod_scorm_mod_form extends moodleform_mod {
|
||||
case SCORM_TYPE_LOCALSYNC :
|
||||
case SCORM_TYPE_EXTERNAL:
|
||||
case SCORM_TYPE_IMSREPOSITORY:
|
||||
case SCORM_TYPE_AICCURL:
|
||||
$default_values['packageurl'] = $default_values['reference'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user