Open Bjoern-Ge opened 1 year ago
I agree that this is an issue. It should wait until we have something working for Moodle 4.
This is discussed here: https://moodle.org/mod/forum/discuss.php?d=412117#p1667722 Allegedly, the code to prevent accidental deletion, as implemented by the Quiz module, is here: https://github.com/moodle/moodle/blob/master/mod/quiz/lib.php#L1438
New discussion here: https://moodle.org/mod/forum/discuss.php?d=446228 This seems to be tricky to do, until a new API has been created for the purpose in qbank.
When adding a question to a normal quiz, you cannot delete it fully. When trying to delete it, you get a warning, that the questions used in a quiz.
It would be nice if moodle keeps a copy of everything added to a CAPQuiz and gives a warning if you try to delete it.
An alternative would be that CAPQuiz automatic removes deleted questions from the CAPQuiz.