Opened: 2007-06-28 10:23 - (OU Bug 3396)
Lisa reported this on Monday 25/6, on Starling. I've discovered that this is
caused by a restore bug (mod/data/restorelib.php) where the 'groupid' column in
mdl_data_records is either set to 0 or the pre-backed up groupid.
I'm attaching a patch for 2 files,
- There is a fix for data_records_restore_mods function in mod/data/restorelib.php, which is hopefully uncontroversial.
- The 2nd file is an admin script to fix the group ID column in 'mdl_data_records' table, at present relying on a grouping ID (which is no use for core at present ). We need a different approach, but this hopefully shows what's involved.