Skip to content

Commit

Permalink
Merge pull request #644 from ncstate-delta/fix/gradefieldname-revert
Browse files Browse the repository at this point in the history
mod_form: revert hidden field string change
  • Loading branch information
smbader authored Mar 6, 2025
2 parents eef119d + 631eb12 commit fa9be30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ public function standard_grading_coursemodule_elements() {
// Requires Moodle 3.8+. Hide field if the grade item is not graded.
if (class_exists('\\core_grades\\component_gradeitems')) {
$gradefieldname = \core_grades\component_gradeitems::get_field_name_for_itemnumber($component, $itemnumber, 'grade');
$mform->hideIf('grading_method', $gradefieldname['modgrade_type'], 'eq', 'none');
$mform->hideIf('grading_method', "{$gradefieldname}[modgrade_type]", 'eq', 'none');
}
}

Expand Down

0 comments on commit fa9be30

Please sign in to comment.