Group choice
Maintained by
Nicolas Dunand
This module allows students to enrol themselves in a group within a course. The teacher can select which groups students can chose from and the maximum number of students allowed in each group.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
http://tracker.moodle.org/browse/CONTRIB-3980
Thanks for reporting back. The code indeed checks before (for display) and after (when the form is submitted) for the group limit, but an error in the code verifying upon submission (post check) escaped my attention. Please find the corrected version in the "Source control URL" link, or here as soon as the module update is approved.
Can you update to the latest version (1.3.1 which I uploaded today) or download it from the "Source control URL" link and let me know if this solves your problems?
The view.php is not designed in a “pushing” mode so that the limit is checked once when the page is loaded.
More important, the save function is not checking the quota restriction.
In short, it depends only a “pre" loading function” to dim/disable the radio button but his may not work in many cases.
To regenerate the problem:
1) Goto the GroupChoice with only 1 slot available
2) Student A open in Firefox visiting the GroupChoice page; at the same time student B visit the same page using Chrome;
3) Both students can save their choice making the limit invalid.
Is there any fix for this problem?
Debug info: Table 'moodle.m_choicegroup_answers' doesn't exist
SELECT cha.*
FROM m_choicegroup ch, m_choicegroup_answers cha
WHERE cha.choicegroupid = ch.id AND
ch.course = ? AND cha.userid = ?
[array (
0 => '4',
1 => '2',
)]
Error code: dmlreadexception
Stack trace:
line 407 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 864 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 42 of /mod/choicegroup/index.php: call to mysqli_native_moodle_database->get_records_sql()
I recently did a major rewrite of this module. The interface is now more user friendly, and the teacher is now able to control privacy settings in a more consistent manner.
Moreover, the Group Choice plugin now works in Moodle 2.3 as well.
However if the above choice is set to No then students, once they have made a choice, are presented with a screen that quite user unfriendly. In the test I did, they see Your selection: 13 (or 12 depending on the choice made) which bears no relation to the choice they were asked to make, and they are not allowed to see the current composition of the groups.
Are there any plans to improve this part of the plugin? It's a really useful plugin but this stops us making full use of it.
Many Thanks.
Success
Coding error detected, it must be fixed by a programmer: Cannot require a CSS file after has been printed.
More information about this error
Debug info: /blocks/accessibility/userstyles.php
Stack trace:
line 595 of \lib\outputrequirementslib.php: coding_exception thrown
line 49 of \blocks\accessibility\block_accessibility.php: call to page_requirements_manager->css()
line 118 of \blocks\moodleblock.class.php: call to block_accessibility->init()
line 635 of \lib\upgradelib.php: call to block_base->__construct()
line 273 of \lib\upgradelib.php: call to upgrade_plugins_blocks()
line 1440 of \lib\upgradelib.php: call to upgrade_plugins()
line 269 of \admin\index.php: call to upgrade_noncore()
how come version 1.9 doens't work ?
Thanks