From 12a725be10f5bd709fc96bd395d8df8b488d7cd0 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 19 Aug 2016 17:56:59 +0100 Subject: [PATCH] MDL-55477 quiz reports: all user fields should have repeats suppressed --- mod/quiz/report/attemptsreport.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/quiz/report/attemptsreport.php b/mod/quiz/report/attemptsreport.php index dca7ee99ab990..891a12ecd37e9 100644 --- a/mod/quiz/report/attemptsreport.php +++ b/mod/quiz/report/attemptsreport.php @@ -190,7 +190,10 @@ protected function add_user_columns($table, &$columns, &$headers) { protected function configure_user_columns($table) { $table->column_suppress('picture'); $table->column_suppress('fullname'); - $table->column_suppress('idnumber'); + $extrafields = get_extra_user_fields($this->context); + foreach ($extrafields as $field) { + $table->column_suppress($field); + } $table->column_class('picture', 'picture'); $table->column_class('lastname', 'bold');