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 d4b3034 commit bfeca9d6b9900b4db88b1f4da12a424960ee7578 @danmarsden danmarsden committed 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
@@ -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 @@ 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 bfeca9d

Please sign in to comment.