Merge branch 'm22_MDL-31039' of git://github.com/danmarsden/moodle into MOODLE_22_STABLE

This commit is contained in:
Eloy Lafuente (stronk7) 2012-02-01 00:41:47 +01:00
commit 6badc27a66
2 changed files with 3 additions and 1 deletions

View file

@ -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;
}

View file

@ -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'];
}
}