MDL-43238 mod_assign: removed incorrect validation

This commit is contained in:
Sam Hemelryk
2014-01-06 09:51:38 +13:00
parent 7404bfd003
commit 2dad31ecf9
@@ -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.');
}
}
}