Go to a course (or create one).
Make sure that the recent activity block is displayed somewhere.
Create a survey activity.
Take the survey with a few different students.
Check out the recent activity block and ensure that there are no errors or developer debugging messages.
While testing for similar places to MDL-43283 where the group by was not correct and grepping
grep -lr 'GROUP BY.*lastname' *
we have found that mod/survey/lib.php and enrol/externallib.php seem to not be using alternative names.
Discovered while testing
MDL-44996Update externallib webservice functions to return additional name fields.
MDL-43283Error reading from database after leaving Chat activity
MDL-45211Undefined variables in survey graph generator
Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona), Juan Leyva, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo