This commit is contained in:
Sara Arjona 2023-08-14 10:46:30 +02:00
commit 272109c19a
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -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');

View File

@ -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');