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

Forum posts are counted twice in Statistics


    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 3.7.5
    • Forum
    • None

      Viewing stats for a user (Home > Courses > [course] > Reports > Statistics) shows double the number of forum posts as they have actually made, as shown in:

      • the student outline report (Home > Courses > [course] > Participants > teststudent1 test > Reports > Outline report), and
      • the course logs (Home > Courses > [course] > Reports > Logs)

      This seems to be because posts are logged as two events:

      1. "Some content has been posted.
      2. "{Discussion,Post} created"

      The statistics pages present the two events as if they were separate posts.


      I guess a fix for this would be in lib/statslib.php, filtering out one of those two event types when compiling the stats to the stats_user_{daily,weekly,monthly} tables.


      Attached screenshots illustrate stats page with 2x posts compared to logs and student outline.

        1. logs.png
          107 kB
          Dave Balch
        2. outline.png
          9 kB
          Dave Balch
        3. stats.png
          19 kB
          Dave Balch

            Unassigned Unassigned
            balchd Dave Balch
            1 Vote for this issue
            3 Start watching this issue


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