Explorar o código

Fixing 1629 define min and max score for exercises in platform admin

Julio Montoya %!s(int64=14) %!d(string=hai) anos
pai
achega
8973411b80
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      main/exercice/exercise_show.php

+ 6 - 1
main/exercice/exercise_show.php

@@ -580,8 +580,13 @@ if ($show_results) {
 		</table>
 		<?php
         
+		/*
+		Do not convert question results
 		$my_total_score  = convert_score($questionScore, $total_weighting);
-		$my_total_weight = convert_score($questionWeighting, $total_weighting);       
+		$my_total_weight = convert_score($questionWeighting, $total_weighting);*/
+		
+		$my_total_score  = $questionScore;
+		$my_total_weight = $questionWeighting;       
 
 		echo '<div id="question_score">';
 	    if ($objExercise->selectPropagateNeg() && $my_total_score < 0) {