Skip to content
Snippets Groups Projects

Fix relation between MultipleChoiceOption and FeedbackOption

Merged Ghost User requested to merge fix/mco-feedback-rel into develop
1 unresolved thread
+ 4
0
@@ -141,6 +141,10 @@ class Feedback(Resource):
# Delete mc_options associated with this feedback option
if fb.mc_option:
if fb.problem.exam.finalized:
return dict(status=401, message='Cannot delete feedback option'
+ ' attached to a multiple choice option in a finalized exam.'), 401
db.session.delete(fb.mc_option)
db.session.commit()
Loading