Explorar el Código

Get best result for gradebook's learnpath link - refs BT#10373 #TMI

Angel Fernando Quiroz Campos hace 9 años
padre
commit
6432098bd9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main/newscorm/lp_view.php

+ 1 - 1
main/newscorm/lp_view.php

@@ -444,7 +444,7 @@ if ($_SESSION['oLP']->current == $_SESSION['oLP']->get_last()) {
             $gradebookLinks[0]->get_ref_id() == $_SESSION['oLP']->lp_id
         ) {
             $gradebookMinScore = $categories[0]->get_certificate_min_score();
-            $userScore = $gradebookLinks[0]->calc_score($user_id, 'average');
+            $userScore = $gradebookLinks[0]->calc_score($user_id, 'best');
 
             if ($userScore[0] >= $gradebookMinScore) {
                 Category::register_user_certificate($categories[0]->get_id(), $user_id);