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

pull/2467/head
jmontoyaa 8 years ago
parent f5071f294c
commit 7b7d8d1e72
  1. 1
      main/lp/aicc_hacp.php
  2. 1
      main/lp/lp_ajax_save_item.php
  3. 1
      main/lp/lp_ajax_switch_item.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');

@ -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 ----- ');
}

@ -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;
}

Loading…
Cancel
Save