Moodle

Course Participants list: broken Tableheader when "hiddenuserfield" = "Last Access" - (Disable/Enable parts of the participants page (user/index.php))

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Michael de Raadt added a comment -

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

Show
Michael de Raadt added a comment - 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
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: