From 51d1bdba9068ca4b64f321705a6540c4bcea6e71 Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 3 Jun 2009 08:52:53 +0000 Subject: [PATCH] MDL-19378 fixed incorrect weight in category form; backported from STABLE --- grade/edit/tree/category_form.php | 1 - 1 file changed, 1 deletion(-) 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); } } -- 2.39.5