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

report_loglive is not working with 'anonymous users'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7
    • 2.7
    • Reports
    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • MDL-45074-master
    • Hide
      1. Enable standard logstore
      2. Create a feedback activity with setting "Record usernames" as "Anonymous"
      3. Submit a response as a student.
      4. Goto My home ► Site administration ► Reports ► Live logs as admin
      5. View logs using standard logstore. Make sure you don't see logs for the feedback submission.
      Show
      Enable standard logstore Create a feedback activity with setting "Record usernames" as "Anonymous" Submit a response as a student. Goto My home ► Site administration ► Reports ► Live logs as admin View logs using standard logstore. Make sure you don't see logs for the feedback submission.

      The following code found
      https://github.com/moodle/moodle/blob/master/report/loglive/classes/table_log.php#L322

              // Set up filtering.
              if (!empty($this->filterparams->courseid)) {
                  $joins[] = "courseid = :courseid";
                  $params['courseid'] = $this->filterparams->courseid;
              }
       
              if (!empty($this->filterparams->date)) {
                  $joins[] = "timecreated > :date";
                  $params['date'] = $this->filterparams->date;
              }
       
              if (!empty($this->filterparams->date)) {
                  $joins[] = "anonymous = :anon";
                  $params['anon'] = $this->filterparams->anonymous;
              }
      

      Simple copy-pasting error. Needs to be fixed and tested.

            ankit_frenz Ankit Agarwal
            marina Marina Glancy
            Petr Skoda Petr Skoda (Inactive)
            Dan Poltawski Dan Poltawski
            Jetha Chan Jetha Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.