Permalink
Browse files

SCORM AICC MDL-31039 update external AICC url correctly - thanks to A…

…lbert Rhemrev for report/fix
  • Loading branch information...
1 parent 04c2e68 commit a607db6e70229dbcb46bf62154bcf0a9e9494c3c @danmarsden danmarsden committed with stronk7 Jan 26, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −1 mod/scorm/lib.php
  2. +1 −0 mod/scorm/mod_form.php
View
@@ -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;
}
View
@@ -369,6 +369,7 @@ function set_data($default_values) {
case SCORM_TYPE_LOCALSYNC :
case SCORM_TYPE_EXTERNAL:
case SCORM_TYPE_IMSREPOSITORY:
+ case SCORM_TYPE_AICCURL:
$default_values['packageurl'] = $default_values['reference'];
}
}

0 comments on commit a607db6

Please sign in to comment.