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

Notices are generated on course page after deleting a grouping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5, 2.6.5, 2.7.2
    • Fix Version/s: BACKEND
    • Component/s: Caching, Groups
    • Labels:
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      1. Login as admin
      2. Enrol 2 students to the course (s1, s2)
      3. Create 1 group, and 1 grouping in the course
        • The group contains both students
        • The grouping contains the group 1
      4. Create a forum with
        • Tracking enabled
        • Separate groups
        • Grouping set to A
      5. Login as both students and enable forum tracking in your preference
      6. Login as s1 and post to the forum
      7. Login as s2 and make sure you see the number of unread posts (1) in the course page
      8. Login as admin and delete the grouping A
      9. Login back as s2
      10. Make sure you see the number of unread posts
      11. Make sure you don't see any notice
      12. if you donot see the error straight away just visit the settings page for forum once and go back to course page without saving.

      On step 10 Notices are generated as mentioned in
      https://tracker.moodle.org/browse/MDL-39947?focusedCommentId=227956&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-227956

      The reason is groupind id is still set for $mod, even though it is updated in database.
      Purging caches didn't help

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ankit_frenz Ankit Agarwal
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              7 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: