From f266594ce44ebcd175f457c86234813d455b5285 Mon Sep 17 00:00:00 2001 From: Pierre Pichet Date: Tue, 24 Aug 2010 15:32:02 +0000 Subject: [PATCH] MDL-23825 commented disabledif calls until this bug is solved so that calcualted and numerical questions can be edited --- question/type/numerical/questiontype.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index acb91008030..e3496de5d1a 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -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'); }