Skip to content

Commit

Permalink
MDL-19378 fixed incorrect weight in category form; backported from ST…
Browse files Browse the repository at this point in the history
…ABLE
  • Loading branch information
skodak committed Jun 3, 2009
1 parent 78f7e0c commit 51d1bdb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion grade/edit/tree/category_form.php
Expand Up @@ -433,7 +433,6 @@ function definition_after_data() {
$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);
}
}
Expand Down

0 comments on commit 51d1bdb

Please sign in to comment.