Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.4, 1.9.5
-
Fix Version/s: None
-
Component/s: Course
-
Labels:None
-
Environment:php 5.2.9
-
Database:Any
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
Description
Wehen setting (admin/settings.php?section=userpolicies) "Last Access" as a "hiddenuserfield" the tableheader of the participants list
within the course will show "course name" instead of "Firstname / Surname" and the list isn't sortable any more.
This issue is related to: http://tracker.moodle.org/browse/MDL-11261
Solution:
user/index.php
( <?PHP // $Id: index.php,v 1.194.2.19 2009/02/04 09:15:06 tjhunt Exp $ )
Change Line 336 - 338:
from:
if (!isset($hiddenfields['lastaccess'])) {
$table->sortable(true, 'lastaccess', SORT_DESC);
}
to:
// if (!isset($hiddenfields['lastaccess'])) {
$table->sortable(true, 'lastaccess', SORT_DESC);
// }
—
We can skip the test at this point beacause it's checked just bevore the data is fetched and printed.
Thanks for reporting this issue.
We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.
If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.
Michael d;
lqjjLKA0p6