Merge branch 'MDL-50652_29' of git://github.com/reskit/moodle into MOODLE_29_STABLE

This commit is contained in:
David Monllao
2015-06-29 13:02:06 +08:00
+1 -1
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']) {