MDL-42021 events: Debug message when objecttable set without an objectid

This commit is contained in:
Frederic Massart 2013-09-27 14:13:30 +08:00
parent 7f3836d15a
commit 31e571cdf0
3 changed files with 18 additions and 3 deletions

View file

@ -174,6 +174,14 @@ class bad_event7 extends \core\event\base {
}
}
class bad_event8 extends \core\event\base {
protected function init() {
$this->data['crud'] = 'c';
$this->data['level'] = self::LEVEL_OTHER;
$this->data['objecttable'] = 'user';
}
}
class problematic_event1 extends \core\event\base {
protected function init() {
$this->data['crud'] = 'u';