MDL-43238 mod_assign: removed incorrect validation
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user