Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18426

Last access time does not display on activity report of courses at any time, by everybody ($coursecontext -> $context)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.4
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Set the "lastaccess" user field to be a hidden field.
      2. Access the course outline report as a user who can view hidden fields.
      3. Verify that without the fix, the "lastaccess" field is missing. With the fix it is not missing from the report.
      Show
      Set the "lastaccess" user field to be a hidden field. Access the course outline report as a user who can view hidden fields. Verify that without the fix, the "lastaccess" field is missing. With the fix it is not missing from the report.
    • Workaround:
      1. Don't set the "lastaccess" field to be a hidden user field.
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      The cause of this bug is a just little mistake.

      in course/report/outline/index.php, line 23

      if (array_search('lastaccess', $hiddenfields) and !has_capability('moodle/user:viewhiddendetails', $coursecontext)) {

      $coursecontext -> $context

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: