Browse Source

Add Session::write('oLP', $oLP) BT#14149

jmontoyaa 7 years ago
parent
commit
7b7d8d1e72
3 changed files with 3 additions and 0 deletions
  1. 1 0
      main/lp/aicc_hacp.php
  2. 1 0
      main/lp/lp_ajax_save_item.php
  3. 1 0
      main/lp/lp_ajax_switch_item.php

+ 1 - 0
main/lp/aicc_hacp.php

@@ -269,6 +269,7 @@ if (!empty($_REQUEST['command'])) {
 }
 
 Session::write('lpobject', serialize($oLP));
+Session::write('oLP', $oLP);
 session_write_close();
 // Content type must be text/plain.
 header('Content-type: text/plain');

+ 1 - 0
main/lp/lp_ajax_save_item.php

@@ -478,6 +478,7 @@ function save_item(
     $myLP->save_last();
 
     Session::write('lpobject', serialize($myLP));
+    Session::write('oLP', $myLP);
     if ($debug > 0) {
         error_log('---------------- lp_ajax_save_item.php : save_item end ----- ');
     }

+ 1 - 0
main/lp/lp_ajax_switch_item.php

@@ -229,6 +229,7 @@ function switch_item_details($lp_id, $user_id, $view_id, $current_item, $next_it
     // Save the new item ID for the exercise tool to use.
     Session::write('scorm_item_id', $new_item_id);
     Session::write('lpobject', serialize($mylp));
+    Session::write('oLP', $mylp);
 
     return $return;
 }