mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-51037 tool_cohortroles: Actions column not sortable and at far right
This commit is contained in:
parent
08f4278ce0
commit
a8bb12db6c
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,6 @@ class cohort_role_assignments_table extends table_sql {
|
|||
'cohortname' => get_string('cohort', 'cohort'),
|
||||
'rolename' => get_string('role'),
|
||||
'fullname' => get_string('name'),
|
||||
'actions' => get_string('actions')
|
||||
);
|
||||
|
||||
// Add headers for extra user fields.
|
||||
|
@ -127,7 +126,7 @@ class cohort_role_assignments_table extends table_sql {
|
|||
}
|
||||
|
||||
// Add remaining headers.
|
||||
$cols = array_merge($cols, array());
|
||||
$cols = array_merge($cols, array('actions' => get_string('actions')));
|
||||
|
||||
$this->define_columns(array_keys($cols));
|
||||
$this->define_headers(array_values($cols));
|
||||
|
@ -140,6 +139,7 @@ class cohort_role_assignments_table extends table_sql {
|
|||
$this->collapsible(false);
|
||||
$this->sortable(true, 'lastname', SORT_ASC);
|
||||
$this->pageable(true);
|
||||
$this->no_sorting('actions');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue