Good afternoon,
I have been working on a new activity type and have run into an issue. When I go to add a new activity of that type it goes to a page with this error.
_____________________________________________________________________________________________________
Can not find data record in database table modules.
[array (
0 => 'customActivity',
)]
Error code: invalidrecord
- line 1455 of \lib\dml\moodle_database.php: dml_missing_record_exception thrown
- line 1431 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
- line 400 of \course\modlib.php: call to moodle_database->get_record()
- line 63 of \course\modedit.php: call to can_add_moduleinfo()
_____________________________________________________________________________________________________
So my question is where in the custom module code is the setting for this so I can make sure it is set appropriately? It can't be in \course\modedit.php, modlib.php, moodle_database.php and moodle_database.php as those are outside of my custom module code.
Any help or advice would be very appreciative!