From 9d27015a5fdda4488513a82d6987b3feedf43b97 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Tue, 26 Jun 2018 17:14:42 +0800 Subject: [PATCH] #203 Removed 'code' column Not all certificates contain a 'code' element, making this column unnecessary. It may also confuse users when it is not applicable. For those who are interested they can always use the 'verify' functionality to confirm certificates, rather than using this page. --- classes/report_table.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/classes/report_table.php b/classes/report_table.php index 5fcd71c..f3eddd5 100644 --- a/classes/report_table.php +++ b/classes/report_table.php @@ -67,13 +67,11 @@ class report_table extends \table_sql { $columns = array( 'fullname', - 'timecreated', - 'code' + 'timecreated' ); $headers = array( get_string('fullname'), - get_string('receiveddate', 'customcert'), - get_string('code', 'customcert') + get_string('receiveddate', 'customcert') ); // Check if we were passed a filename, which means we want to download it. @@ -95,7 +93,6 @@ class report_table extends \table_sql { $this->define_headers($headers); $this->collapsible(false); $this->sortable(true); - $this->no_sorting('code'); $this->no_sorting('download'); $this->is_downloadable(true); @@ -130,16 +127,6 @@ class report_table extends \table_sql { return userdate($user->timecreated); } - /** - * Generate the code column. - * - * @param \stdClass $user - * @return string - */ - public function col_code($user) { - return $user->code; - } - /** * Generate the download column. *