mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 03:14:20 +02:00
Merge branch 'MDL-78858' of https://github.com/paulholden/moodle
This commit is contained in:
commit
272109c19a
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user