#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.
This commit is contained in:
parent
e5939c8076
commit
9d27015a5f
1 changed files with 2 additions and 15 deletions
|
@ -67,13 +67,11 @@ class report_table extends \table_sql {
|
||||||
|
|
||||||
$columns = array(
|
$columns = array(
|
||||||
'fullname',
|
'fullname',
|
||||||
'timecreated',
|
'timecreated'
|
||||||
'code'
|
|
||||||
);
|
);
|
||||||
$headers = array(
|
$headers = array(
|
||||||
get_string('fullname'),
|
get_string('fullname'),
|
||||||
get_string('receiveddate', 'customcert'),
|
get_string('receiveddate', 'customcert')
|
||||||
get_string('code', 'customcert')
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Check if we were passed a filename, which means we want to download it.
|
// 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->define_headers($headers);
|
||||||
$this->collapsible(false);
|
$this->collapsible(false);
|
||||||
$this->sortable(true);
|
$this->sortable(true);
|
||||||
$this->no_sorting('code');
|
|
||||||
$this->no_sorting('download');
|
$this->no_sorting('download');
|
||||||
$this->is_downloadable(true);
|
$this->is_downloadable(true);
|
||||||
|
|
||||||
|
@ -130,16 +127,6 @@ class report_table extends \table_sql {
|
||||||
return userdate($user->timecreated);
|
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.
|
* Generate the download column.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue