Moodle 1.9.9 – there seems to be a problem if you have eg 10 choice options, some students make their choices and you change the choice options after they have made their choices, in the way that you delete the choice options some students have decided for. The problem is, that within the database the table mdl_choice_options is correctly changed, the lines with the deleted options are being deleted, but the corresponding answers are not. So there are some entries in the table mdl_choice_answers corresponding to choice_options that do not exist anymore.
The problem occured as we tried to create groups out of a choice acitivty with the plugin Choice to Group: http://moodle.org/mod/data/view.php?d=13&rid=1604&filter=1.
The problem is, that the plugin loops over all choice_answers and stucks if there is no corresponding choice_option. But I think, although it could be resolved within the choice to group plugin, that it is a choice bug.
Posted @ Moodle Tracker