I have a requirement to customize the negative marking functionality.
The scenario is like, the teacher/admin will enter all the options for a question and mark the correct answer only and leave the rest as it is (None). They need a customized option where they can select the quiz and enter the negative mark and save, this has to get updated to the question.
I have customized everything, and when the user updates negative mark, I am updating the mdl_question_answers table -> fraction column.
There are no issues until here. But, the actual issue is when the student answers the questions, these negative marks are not being considered, though the DB is updated properly.
When I try to apply negative marks to the question directly through question, they perform normally.
My question is, Have I missed any other table?? Do I need to update any other table other than mdl_question_answers
Thanks in Advance