From 2dad31ecf959bcd322433c0ead27d7dc62af74b8 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Mon, 6 Jan 2014 09:51:38 +1300 Subject: [PATCH] MDL-43238 mod_assign: removed incorrect validation --- .../classes/event/assessable_uploaded.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php b/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php index 07a6b35df3e..214ba1f1eab 100644 --- a/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php +++ b/mod/assign/submission/onlinetext/classes/event/assessable_uploaded.php @@ -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.'); - } - } } -- 2.43.0