KQMATH / moodle-mod_capquiz

:mushroom: Computer adaptive practice activity module for Moodle
https://moodle.org/plugins/mod_capquiz
GNU General Public License v3.0
4 stars 5 forks source link

Deleted questions #215

Open Bjoern-Ge opened 1 year ago

Bjoern-Ge commented 1 year ago

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.

hgeorgsch commented 1 year ago

I agree that this is an issue. It should wait until we have something working for Moodle 4.

hgeorgsch commented 1 year ago

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

hgeorgsch commented 1 year ago

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.