mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-50652 workshop: Workshop module allows duplicated ID number
This commit is contained in:
parent
38cb73a47f
commit
90faa6ae9c
@ -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']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user