mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-42021 events: Debug message when objecttable set without an objectid
This commit is contained in:
parent
7f3836d15a
commit
31e571cdf0
3 changed files with 18 additions and 3 deletions
8
lib/tests/fixtures/event_fixtures.php
vendored
8
lib/tests/fixtures/event_fixtures.php
vendored
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue