Procházet zdrojové kódy

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 před 10 roky
rodič
revize
fbeb2728f2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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') { ?>