Browse Source

Add session ID to learning path JS item link builder in scorm_api.php to prevent error loading other pages than the first in a session

Yannick Warnier 10 years ago
parent
commit
fbeb2728f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/newscorm/scorm_api.php

+ 1 - 1
main/newscorm/scorm_api.php

@@ -1589,7 +1589,7 @@ function switch_item(current_item, next_item){
     }
 
     var mysrc = 'lp_controller.php?action=content&lp_id=' + olms.lms_lp_id +
-                '&item_id=' + next_item + '&cidReq=' + olms.lms_course_code;
+                '&item_id=' + next_item + '&cidReq=' + olms.lms_course_code + '&id_session=' + olms.lms_session_id;
     var cont_f = $("#content_id");
 
     <?php if ($oLP->mode == 'fullscreen') { ?>