Resolution: Not a bug
Affects Version/s: 3.0.2
Fix Version/s: None
Dear Moodle-Tracker Team,
we have installed moodle 3.0.2+ (Build: 20160211). Today we wanted to add a choice-activity to a course with a max-limit for every option (f.e. group a & group b with a max size of 10 people).
But if a student tries to select an option, he gets the error: the choice could not be saved (error/choice/cannotsubmit).
If we deactivate the max-limit for the options , the choice-activity works fine.
We locate a new source-code-part in .../mod/choice/lib.php from line 278 till 292. If we comment out line 288 ($choicelock=...) and 290 (print_error(...)) the choice activity works fine again.
The Choicelock seems to lock every choice. That can´t be correct, or?
EDIT: It seems that there is a problem with our MSSQL-CLuster and the lock-API. We have another moodle-instance with a maria-DB and the same code-base and the choice-plugin works fine there.