ndunand / moodle-mod_choicegroup

Moodle "Group Choice" plugin
https://moodle.org/plugins/mod_choicegroup
35 stars 63 forks source link

Group Choice and Course Completion default settings change issue #160

Open HDHamlet opened 3 years ago

HDHamlet commented 3 years ago

Description: If you want to change on a course default setting in Course Completion menu in Default activity completion and you have not defined any groups or groupings yet or you have removed all groups and groupings, you will get and coding error announcement. (Moodle 3.9.10)

How to test?

You will get following warning and Continue leads to Moodle dashboard

"Please create at least one group in this course.

manage course groups get back to the course"

"Coding error detected, it must be fixed by a programmer: JavaScript collection has already been started.

More information about this error"

I suspect at some part you should allow value null or 0. I am not coding pro but issue is causing for some users unnecessary worries.

Workaround: Create a group for the course. Make changes and you can delete the group after.