MDL-47243 core_grades: Allow extra credit on outcome grade items

This commit is contained in:
John Okely 2014-10-09 09:23:05 +08:00
parent c53708d9c0
commit 5e18456631

View File

@ -202,7 +202,7 @@ class edit_outcomeitem_form extends moodleform {
$parent_category->apply_forced_settings();
if (!$parent_category->is_aggregationcoef_used() or $parent_category->aggregation == GRADE_AGGREGATE_SUM) {
if (!$parent_category->is_aggregationcoef_used()) {
if ($mform->elementExists('aggregationcoef')) {
$mform->removeElement('aggregationcoef');
}