MDL-43238 mod_assign: removed incorrect validation
authorSam Hemelryk <sam@moodle.com>
Sun, 5 Jan 2014 20:51:38 +0000 (09:51 +1300)
committerSam Hemelryk <sam@moodle.com>
Sun, 5 Jan 2014 20:51:38 +0000 (09:51 +1300)
mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php

index 07a6b35..214ba1f 100644 (file)
@@ -107,17 +107,4 @@ class assessable_uploaded extends \core\event\assessable_uploaded {
         parent::init();
         $this->data['objecttable'] = 'assign_submission';
     }
-
-    /**
-     * Validation that should be shared among child classes.
-     *
-     * @throws \coding_exception when validation fails.
-     * @return void
-     */
-    protected function validate_data() {
-        parent::validate_data();
-        if (!isset($this->other['format']) || !is_string($this->other['format'])) {
-            throw new \coding_exception('format must be set in $other and must be a string.');
-        }
-    }
 }