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

editing a forum post set to show to all participants in group mode causes an orphan post

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.4, 2.3.1, 2.4
    • Fix Version/s: 2.2.5, 2.3.2
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide

      set your course to use seperate groups
      create some groups in your course
      Create a forum set to use seperate groups
      create a new post in the forum set to show to all participants - save.
      login as a user that is in one of the groups created earlier - check to make sure they can see the post
      log back in as teacher/admin and edit the existing post - make sure all participants is still selected
      login as a user that is in one of the groups created earlier - check to make sure they can see the post - they can't because the groupid in the mdl_forum_discussions record has changed to 0 instead of -1

      Show
      set your course to use seperate groups create some groups in your course Create a forum set to use seperate groups create a new post in the forum set to show to all participants - save. login as a user that is in one of the groups created earlier - check to make sure they can see the post log back in as teacher/admin and edit the existing post - make sure all participants is still selected login as a user that is in one of the groups created earlier - check to make sure they can see the post - they can't because the groupid in the mdl_forum_discussions record has changed to 0 instead of -1
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:
      MDL-33022-master

      Description

      If you edit an existing forum post set to display to all participants inside a forum set to seperate groups
      after editing the post it becomes hidden to all participants - it seems on re-editing the post, the "groupid" flag in the mdl_forum_discussions is set to '0' instead of the original '-1' which it should be set to.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Sep/12