Explorar o código

[svn r12392] Fix a bug with fill in blanks questions

Julian Prud'homme %!s(int64=18) %!d(string=hai) anos
pai
achega
7db52b8b3c
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      main/exercice/fill_blanks.class.php

+ 3 - 0
main/exercice/fill_blanks.class.php

@@ -140,6 +140,9 @@ class FillBlanks extends Question {
 
 		// get the blanks weightings
 		$nb = preg_match_all('/\[[^\]]*\]/', $answer, $blanks);
+		if(isset($_GET['editQuestion'])){
+			$this -> weighting = 0;
+		}
 		if($nb>0)
 		{
 			$answer .= '::';