Save the progresse and last updated item eachtime we call save_item web service

skala
Noel Dieschburg 14 years ago
parent 0b59d7e3fb
commit c8f50ead46
  1. 2
      main/newscorm/lp_ajax_save_item.php

@ -199,6 +199,8 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1,
if ($mylp->get_type() == 2) {
$return .= "update_stats();";
}
//To be sure progress is updated
$mylp->save_last();
return $return;
//return $objResponse;
}

Loading…
Cancel
Save