Merge branch 'MDL-78858' of https://github.com/paulholden/moodle
This commit is contained in:
@@ -431,6 +431,7 @@ class add_category extends dynamic_form {
|
||||
} else {
|
||||
$element =& $mform->createElement('text', 'grade_item_aggregationcoef',
|
||||
get_string($coefstring, 'grades'));
|
||||
$mform->setType('grade_item_aggregationcoef', PARAM_FLOAT);
|
||||
}
|
||||
$mform->insertElementBefore($element, 'parentcategory');
|
||||
$mform->addHelpButton('grade_item_aggregationcoef', $coefstring, 'grades');
|
||||
|
||||
@@ -303,6 +303,7 @@ class add_item extends dynamic_form {
|
||||
$element =& $mform->createElement('checkbox', 'aggregationcoef', get_string($coefstring, 'grades'));
|
||||
} else {
|
||||
$element =& $mform->createElement('text', 'aggregationcoef', get_string($coefstring, 'grades'));
|
||||
$mform->setType('aggregationcoef', PARAM_FLOAT);
|
||||
}
|
||||
if ($mform->elementExists('parentcategory')) {
|
||||
$mform->insertElementBefore($element, 'parentcategory');
|
||||
|
||||
Reference in New Issue
Block a user