Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.2
-
Fix Version/s: 1.9.4
-
Component/s: Backup
-
Labels:None
-
Environment:1.9.2 moodle with a 8.2.4 postgres installed in a SUSE Linux Enterprise Server 10 SP1
-
Database:PostgreSQL
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
The function restore_create_groups_members duplicate members of group in the same course, when teacher restore a course by parts, and any part of the restore file have users, because the lib doesn't use the groups_add_member function, that check if user exists in group, use insert_record without checking first.
Bye
should be fixed now, I have added record_exists() because the group lib functions alter dates
thanks a lot for the report and proposed fix !