Permalink
Browse files

MDL-38833 core_grade: added a set_type for finalgrade

  • Loading branch information...
1 parent 5f8a427 commit 15b09302887a72f56fd97fcc727c469aea9b27fd @andyjdavis andyjdavis committed Apr 18, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 grade/edit/tree/grade_form.php
View
1 grade/edit/tree/grade_form.php
@@ -58,6 +58,7 @@ function definition() {
if ($grade_item->gradetype == GRADE_TYPE_VALUE) {
// numeric grade
$mform->addElement('text', 'finalgrade', get_string('finalgrade', 'grades'));
+ $mform->setType('finalgrade', PARAM_RAW);
$mform->addHelpButton('finalgrade', 'finalgrade', 'grades');
$mform->disabledIf('finalgrade', 'overridden', 'notchecked');

0 comments on commit 15b0930

Please sign in to comment.