Commit f81f6bbd authored by Marc Català's avatar Marc Català Committed by Marc Català
Browse files

MDL-50652 workshop: Workshop module allows duplicated ID number

parent 47cbd1b4
......@@ -328,7 +328,7 @@ class mod_workshop_mod_form extends moodleform_mod {
* @return array eventual errors indexed by the field name
public function validation($data, $files) {
$errors = array();
$errors = parent::validation($data, $files);
// check the phases borders are valid
if ($data['submissionstart'] > 0 and $data['submissionend'] > 0 and $data['submissionstart'] >= $data['submissionend']) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment