Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted questions #215

Open
Bjoern-Ge opened this issue Feb 27, 2023 · 3 comments
Open

Deleted questions #215

Bjoern-Ge opened this issue Feb 27, 2023 · 3 comments
Labels
can wait enhancement New feature or request

Comments

@Bjoern-Ge
Copy link

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.

@Bjoern-Ge Bjoern-Ge added the enhancement New feature or request label Feb 27, 2023
@hgeorgsch
Copy link
Contributor

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

@hgeorgsch
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can wait enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants