Skip completed lps see BT#9746

1.10.x
Julio Montoya 11 years ago
parent fb743f6142
commit f39e7cf5f3
  1. 6
      main/inc/ajax/course_home.ajax.php

@ -151,6 +151,12 @@ switch ($action) {
foreach ($flat_list as $lp_id => $lp_item) {
$temp[$count]['id']= $lp_id;
$lp = new learnpath($item['code'], $lp_id, api_get_user_id());
if ($lp->progress_db == 100) {
continue;
}
$lp_url = api_get_path(WEB_CODE_PATH).'newscorm/lp_controller.php?cidReq='.$item['code'].'&id_session='.$session_id.'&lp_id='.$lp_id.'&action=view';
$last_date = Tracking::get_last_connection_date_on_the_course(

Loading…
Cancel
Save