SCORM AICC MDL-31039 update external AICC url correctly - thanks to Albert Rhemrev for report/fix
This commit is contained in:
+2
-1
@@ -185,7 +185,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;
|
||||
}
|
||||
|
||||
@@ -397,6 +397,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