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

Forum posts user report erronously reports 'no forum posts' when user is unenrolled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.1.4, 3.2.1
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      Prerequisites
      1. A course containing a forum
      2. At least one user enrolled in the course
      Testing
      1. Login as a user enrolled in the course
      2. Make a forum post in the test forum
      3. Login as editing teacher or admin
      4. View the user profile for your test user and click to view "Forum posts"
        1. Confirm that the post is listed
      5. Unenrol the user
      6. Refresh the list of forum posts
        1. Confirm that the post is still present in the list
      Show
      Prerequisites A course containing a forum At least one user enrolled in the course Testing Login as a user enrolled in the course Make a forum post in the test forum Login as editing teacher or admin View the user profile for your test user and click to view "Forum posts" Confirm that the post is listed Unenrol the user Refresh the list of forum posts Confirm that the post is still present in the list
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      This came up on Moodle.org - I wanted to view the forum posts of a user who is now unenrolled from Moodle in English.

      Steps to reproduce:

      1. Enrol user to course
      2. Get user to make forum post in that course
      3. Unenroll the user from their course
      4. Go to /mod/forum/user.php?id=<userid>

      Expected results:

      • Shows the forum posts of the user, despite their unenrolment status (just like I can see the post on the forum still)

      Actual results:

      • Shows '<user> has made no posts' which is inaccurate.

        Attachments

          Activity

            People

            Assignee:
            ak4t0sh Arnaud Trouvé
            Reporter:
            poltawski Dan Poltawski
            Peer reviewer:
            Andrew Nicols
            Integrator:
            Dan Poltawski
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jan/17