Unable to delete a Quiz in case where the resource(s) inside don't exist // case of disappearing and reappearing content in a Quiz #12388
Labels
P1 - important
Priority: High impact on UX
Milestone
This was on kolibri-demo on 0.16.2:
Observed behavior
While logged in as an admin, in the Plan tab I noticed that one of my quizzes had content in it that no longer existed in the platform, so I tried to delete the Quiz. I got this pop up:
![image](https://private-user-images.githubusercontent.com/22602993/344828438-942d414e-095a-4978-aa10-236a62b203f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMDQwMzMsIm5iZiI6MTcyMTIwMzczMywicGF0aCI6Ii8yMjYwMjk5My8zNDQ4Mjg0MzgtOTQyZDQxNGUtMDk1YS00OTc4LWFhMTAtMjM2YTYyYjIwM2Y4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA4MDg1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxYWUxMDgzMGM4MjhmZTY0MmIyOGY1MGFlZDNkODQ3MWJmNjMxNjMxN2M0NDUzYTMzZTExZThmYTViNjJmNWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5uNvYK_RgNNLVS29ts_tytIG4ZlAiLeg8S8GkvzgVqs)
But when trying to click the 'Delete' button, nothing happened.
When I refreshed the page, the Quiz was still there but I also noticed that the content had been restored:
![image](https://private-user-images.githubusercontent.com/22602993/344828566-85323a36-435e-4b1f-8342-1c16b3f4c5f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMDQwMzMsIm5iZiI6MTcyMTIwMzczMywicGF0aCI6Ii8yMjYwMjk5My8zNDQ4Mjg1NjYtODUzMjNhMzYtNDM1ZS00YjFmLTgzNDItMWMxNmIzZjRjNWY1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA4MDg1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1M2E0NjZkY2U2ODhmODgyYWI1ZGQ1ZTgwYmQ2Nzc1NDIyMDBjN2I4YWM0MjBjNmUwN2YzZDkzZjY2YzY0MzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.myKyPsP0Q23E_rDX4X2OgyLw-XcbTWBsM_KfJjRK-3o)
Context
Tell us about your environment, including:
…
The text was updated successfully, but these errors were encountered: