Meta-course group synchronization
Maintained by
Paul Holden
Automatically synchronize groups from child courses into meta-courses.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Although the plugin was designed for Moodle 2.6, it should continue to work fine in later versions - please let me know if not!
I figured that this error is caused by this line in the script.
require_once (__DIR__ . '/../../../config.php');
moodle, is working just fine. So, I am not sure why it is the script is giving me this error.
any idea why, this is happening.?
That is the current behaviour, yes. If you take a look at the group_created event observer, you'll see that it currently matches on the 'idnumber' property of the group:
https://github.com/paulholden/moodle-local_metagroups/blob/master/classes/observers.php#L46-53
Perhaps a configuration option to match on group name could be added..?
When having the same name for groups in two or more child courses, the plugin creates the same number of duplicate groups in the meta-course instead of using just one.
Example:
- course A has group "org_es"
- course B has group "org_es"
- course C is meta-linked to courses A and B
- two groups "org_es" are created in course C (one with course A students, the other with course B students) instead of just one group "org_es" (with both course A and course B students)
Also, it doesn't matter if group "org_es" was already created in course C. Three groups remain: one with course A students, another one with course B students and the one already created in course C.
Again, maybe this is the expected behavior.