Skip to content

Commit

Permalink
Merge branch 'MDL-75836' of https://github.com/jrchamp/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Sep 30, 2022
2 parents 010ad87 + cc98635 commit d41a859
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions course/moodleform_mod.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,10 @@ function definition_after_data() {
// form verification
function validation($data, $files) {
global $COURSE, $DB, $CFG;
$errors = parent::validation($data, $files);

$mform =& $this->_form;

$errors = array();
$errors = parent::validation($data, $files);

if ($mform->elementExists('name')) {
$name = trim($data['name']);
Expand Down

0 comments on commit d41a859

Please sign in to comment.