From: Dan Marsden Date: Wed, 13 Jan 2010 22:58:03 +0000 (+0000) Subject: SCORM AICC MDL-21332 issue with returning to correct location when loading an AICC... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f3f58e0b936cf791415d4386330af1c57134a3ae;p=moodle.git SCORM AICC MDL-21332 issue with returning to correct location when loading an AICC object for the 2nd time. - Thanks to Matteo Scaramuccia for the report and fix. --- diff --git a/mod/scorm/datamodels/aicclib.php b/mod/scorm/datamodels/aicclib.php index b25976371e..93ebddaac0 100644 --- a/mod/scorm/datamodels/aicclib.php +++ b/mod/scorm/datamodels/aicclib.php @@ -368,6 +368,9 @@ function scorm_get_toc($user,$scorm,$liststyle,$currentorg='',$scoid='',$mode='n $usertracks = array(); foreach ($scoes as $sco) { if (!empty($sco->launch)) { + if (empty($scoid)) { + $scoid = $sco->id; + } if ($usertrack = scorm_get_tracks($sco->id,$user->id,$attempt)) { if ($usertrack->status == '') { $usertrack->status = 'notattempted';