mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +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
|
@ -463,6 +463,9 @@ abstract class base implements \IteratorAggregate {
|
|||
if (!$DB->get_manager()->table_exists($this->data['objecttable'])) {
|
||||
debugging('Unknown table specified in objecttable field', DEBUG_DEVELOPER);
|
||||
}
|
||||
if (!isset($this->data['objectid'])) {
|
||||
debugging('Event property objectid must be set when objecttable is defined', DEBUG_DEVELOPER);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue