From a9d22c84b6ba756c6e20f97376717065d91419aa Mon Sep 17 00:00:00 2001 From: bobopinna Date: Tue, 26 Sep 2006 10:26:03 +0000 Subject: [PATCH] Fixed a problem with Firefox --- mod/scorm/lib.php | 4 ++++ mod/scorm/mod.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/scorm/lib.php b/mod/scorm/lib.php index c7338ff099..c8b448e19b 100755 --- a/mod/scorm/lib.php +++ b/mod/scorm/lib.php @@ -87,7 +87,11 @@ function scorm_update_instance($scorm) { delete_records('scorm_sequencing_rulecondition','scormid',$scorm->id); */ $scorm->launch = scorm_parse($scorm); + } else { + $oldscorm = get_record('scorm','id',$scorm->id); + $scorm->reference = $oldscorm->reference; // This fix a problem with Firefox when the teacher choose Cancel on overwrite question } + return update_record('scorm', $scorm); } diff --git a/mod/scorm/mod.html b/mod/scorm/mod.html index 113c5e79c2..60c5d93a95 100755 --- a/mod/scorm/mod.html +++ b/mod/scorm/mod.html @@ -202,7 +202,7 @@ } -
+ -- 2.39.5
: