Explorar o código

Fix parameter see BT#12898

jmontoyaa %!s(int64=7) %!d(string=hai) anos
pai
achega
6f640887dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main/work/work.lib.php

+ 1 - 1
main/work/work.lib.php

@@ -3308,7 +3308,7 @@ function formatWorkScore($score, $weight)
         $label = 'warning';
     }
 
-    $scoreBasedInModel = ExerciseLib::convertScoreToModel($relativeScore);
+    $scoreBasedInModel = ExerciseLib::convertScoreToModel($relativeScore*100);
     if (empty($scoreBasedInModel)) {
         $finalScore = api_number_format($score, 1).' / '.$weight;