MDL-47796 mod_data: Fix display of group records.
MDL-47796 mod_data: Fix display of group records.

When viewing entries as a teacher in separate group
mode, changing the group would result in random
entries being shown.

dilawar/moodle