Skip to content

Commit 57750c2

Browse files
committed
Adding progress in report see BT#8900
1 parent b2b5ca3 commit 57750c2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

main/inc/lib/tracking.lib.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Tracking
2424
* @param int $extendAttemptId
2525
* @param string $extendedAttempt
2626
* @param string $extendedAll
27+
* @param string $type classic or simple
2728
* @return null|string
2829
*/
2930
public static function getLpStats(
@@ -886,8 +887,8 @@ public static function getLpStats(
886887
}
887888
}
888889

889-
//$progress = self::get_avg_student_progress()
890-
$progress = null;
890+
$progress = learnpath::getProgress($lp_id, $user_id, $course_id, $session_id);
891+
891892
if (($counter % 2) == 0) {
892893
$oddclass = 'row_odd';
893894
} else {
@@ -899,7 +900,7 @@ public static function getLpStats(
899900
<td colspan="4">
900901
<i>' . get_lang('AccomplishedStepsTotal') .'</i>
901902
</td>
902-
<td colspan="2"> ' . $progress.'</td>
903+
<td colspan="2">'.$progress.'%</td>
903904
<td colspan="2">
904905
' . $final_score.'
905906
</td>

0 commit comments

Comments
 (0)