MDL-23825 commented disabledif calls until this bug is solved so that calcualted...
authorPierre Pichet <pichet.pierre@uqam.ca>
Tue, 24 Aug 2010 15:32:02 +0000 (15:32 +0000)
committerPierre Pichet <pichet.pierre@uqam.ca>
Tue, 24 Aug 2010 15:32:02 +0000 (15:32 +0000)
question/type/numerical/questiontype.php

index acb9100..e3496de 100644 (file)
@@ -1002,12 +1002,12 @@ class question_numerical_qtype extends question_shortanswer_qtype {
         $mform->setDefault('unitsleft', 0);
         $mform->setType('instructions', PARAM_RAW);
         $mform->addHelpButton('instructions', 'numericalinstructions', 'qtype_numerical');
-        $mform->disabledIf('penaltygrp', 'unitrole','eq','1');
-        $mform->disabledIf('unitgradingtype', 'unitrole','eq','1');
-        $mform->disabledIf('instructions', 'unitrole','eq','1');
-        $mform->disabledIf('unitsleft', 'showunits1','eq','3');
-        $mform->disabledIf('showunits1','unitrole','eq','0');
-        $mform->disabledIf('showunits0','unitrole','eq','1');
+      //  $mform->disabledIf('penaltygrp', 'unitrole','eq','1');
+      //  $mform->disabledIf('unitgradingtype', 'unitrole','eq','1');
+      //  $mform->disabledIf('instructions', 'unitrole','eq','1');
+      //  $mform->disabledIf('unitsleft', 'showunits1','eq','3');
+      //  $mform->disabledIf('showunits1','unitrole','eq','0');
+      //  $mform->disabledIf('showunits0','unitrole','eq','1');
 
 
     }