MDL-50652 workshop: Workshop module allows duplicated ID number

This commit is contained in:
Marc Català 2015-06-20 12:02:22 +01:00 committed by Marc Català
parent 38cb73a47f
commit 90faa6ae9c

View File

@ -345,7 +345,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']) {