From: skodak Date: Wed, 3 Jun 2009 08:52:53 +0000 (+0000) Subject: MDL-19378 fixed incorrect weight in category form; backported from STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=51d1bdba9068ca4b64f321705a6540c4bcea6e71;p=moodle.git MDL-19378 fixed incorrect weight in category form; backported from STABLE --- diff --git a/grade/edit/tree/category_form.php b/grade/edit/tree/category_form.php index ed3d9d352c..5dc8bba1a6 100644 --- a/grade/edit/tree/category_form.php +++ b/grade/edit/tree/category_form.php @@ -433,7 +433,6 @@ class edit_category_form extends moodleform { $element =& $mform->createElement('text', 'grade_item_aggregationcoef', get_string($coefstring, 'grades')); } $mform->insertElementBefore($element, 'parentcategory'); - $mform->setDefault('grade_item_aggregationcoef', (int) $grade_item->aggregationcoef); // must be cast to int, otherwise "0" counts as true :S $mform->setHelpButton('grade_item_aggregationcoef', array($coefstring, get_string($coefstring, 'grades'), 'grade'), true); } }