SCORM AICC MDL-31039 update external AICC url correctly - thanks to Albert Rhemrev for report/fix

This commit is contained in:
Dan Marsden
2012-02-01 00:42:21 +01:00
committed by Eloy Lafuente (stronk7)
parent 04c2e6820d
commit a607db6e70
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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;
}
+1
View File
@@ -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'];
}
}