Commit Graph

4 Commits

Author SHA1 Message Date
Mihail Geshoski 208e7a042b Merge branch 'MDL-85551_main' of https://github.com/marxjohnson/moodle 2025-09-02 09:31:55 +08:00
Mark Johnson 6abed1ad66 MDL-85551 questions: Creating a default category with a questions mod
When a new module that publishes questions is created, it does not have
a default question category created until it is viewed. This means that
other parts of the system that want to use the bank while its empty
(such as bulk moving questions) cannot see it.

This adds a step to the common edit_module_post_actions() function so
that any module supporting the FEATURE_PUBLISHES_QUESTIONS feature will
have its default category created with the module instance.

This can be overridden by setting skipdefaultcategory to true
in the $moduleinfo argument to edit_post_module_actions().
2025-08-12 14:03:26 +01:00
Mark Johnson 7b89752b49 MDL-85018 questionlib: Update broken question test
A multianswer question with a missing database record no longer throws
an exception, so doesn't work for the "broken question" test, so switch
to ddwtos.
2025-08-11 10:07:39 +01:00
Andrew Nicols f747c15cbf MDL-83424 core: Restructure Moodle codebase 2025-07-12 17:51:38 +08:00