Browse Source

Don't show Hot Spot Delineation question type when Scenario is disabled

Angel Fernando Quiroz Campos 9 years ago
parent
commit
d55a9e2782
1 changed files with 4 additions and 0 deletions
  1. 4 0
      main/exercice/question.class.php

+ 4 - 0
main/exercice/question.class.php

@@ -1373,6 +1373,10 @@ abstract class Question
             self::$questionTypes[ORAL_EXPRESSION] = null;
             unset(self::$questionTypes[ORAL_EXPRESSION]);
         }
+        if (api_get_setting('enable_quiz_scenario') !== 'true') {
+            self::$questionTypes[HOT_SPOT_DELINEATION];
+            unset(self::$questionTypes[HOT_SPOT_DELINEATION]);
+        }
         return self::$questionTypes;
     }