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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.7
    • 3.7
    • Forum
    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65466-master
    • 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.

    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

            Geshoski Mihail Geshoski
            Geshoski Mihail Geshoski
            Mathew May Mathew May
            Jun Pataleta Jun Pataleta
            Anna Carissa Sadia Anna Carissa Sadia
            Adrian Greeve, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              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