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

Unable to pin/unpin discussions when adding/editing a discussion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7
    • Fix Version/s: 3.7
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      1. Login as Admin.
      2. Create a course.
      3. Add a Forum activity in the course.

      Test 1 (Adding a new discussion)

      1. Add a new discussion through the 'Advanced' form.
        • Set the discussion to 'Pinned'.
      1. Save the discussion.
      2. Go to the discussion list.
        • make sure the discussion is pinned.

      Test 2 (Editing a discussion)

      1. Add a discussion.
      2. Pin the discussion using the discussion's action menu in the discussion list page.
      3. Go to the Discussion.
      4. Edit the discussion.
        • Unpin the discussion.
        • Save the discussion.
      5. Go to the discussion list.
        • make sure the discussion is unpinned.
      6. Go back to the Discussion.
      7. Edit the discussion.
        • Pin the discussion.
        • Save the discussion.
      8. Go to the discussion list.
        • make sure the discussion is pinned.
      Show
      Login as Admin. Create a course. Add a Forum activity in the course. Test 1 (Adding a new discussion) Add a new discussion through the 'Advanced' form. Set the discussion to 'Pinned'. Save the discussion. Go to the discussion list. make sure the discussion is pinned. Test 2 (Editing a discussion) Add a discussion. Pin the discussion using the discussion's action menu in the discussion list page. Go to the Discussion. Edit the discussion. Unpin the discussion. Save the discussion. Go to the discussion list. make sure the discussion is unpinned. Go back to the Discussion. Edit the discussion. Pin the discussion. Save the discussion. Go to the discussion list. make sure the discussion is pinned.
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Epic Link:
    • Pull Master Branch:
      MDL-65466-master

      Description

      After adding a new discussion from the advanced form and setting the discussions to be 'pinned', the 'pinned' status is not being applied to the discussion.

      Also the same problem appears when editing a pinned discussion and attempting to 'unpin' it from the 'advanced' form. The unpin action is not being applied 

      Steps to reproduce:

      1. Login as Admin
      2. Create a course
      3. Add a Forum activity in the course
      4. Add discussion through the 'Advanced' form
        • Set the discussion to 'Pinned'
      1. Save the discussion
      2. Go to the discussion list
        • The discussion is not pinned
      1. Login as Admin
      2. Create a course
      3. Add a Forum activity in the course
      4. Add discussion.
      5. Pin the discussion from the discussion list page
      6. Go to the Discussion
      7. Edit the discussion
        • Unpin the discussion
        • Save the discussion
      1. Go to the discussion list
        • The discussion is not unpinned

        Attachments

          Activity

            People

            • Assignee:
              Geshoski Mihail Geshoski
              Reporter:
              Geshoski Mihail Geshoski
              Peer reviewer:
              Mathew May
              Integrator:
              Jun Pataleta
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Nicols, Mathew May, 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:
                20/May/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 20 minutes
                2h 20m