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

Unable to post in single group forum

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.4, 2.6.1, 2.7
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course with a group
      2. Create a grouping consisting of a single group
      3. Create a forum in separate mode specifying the grouping
      4. As a teacher create a post in the forum for "everybody" and another one for "group only"
      5. As a student inside the group make sure you can see both posts
      6. As a student outside of the group make sure you can see only one

      P.S. if a teacher marks "Available for group members only" (has to be first enabled site-wide), the student from outside of the group should not be able to see any of the posts.

      Show
      Create a course with a group Create a grouping consisting of a single group Create a forum in separate mode specifying the grouping As a teacher create a post in the forum for "everybody" and another one for "group only" As a student inside the group make sure you can see both posts As a student outside of the group make sure you can see only one P.S. if a teacher marks "Available for group members only" (has to be first enabled site-wide), the student from outside of the group should not be able to see any of the posts.
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      wip-MDL-43828-master

      Description

      I noticed it writing behat test for recent activity block.

      1. Create a course with several groups
      2. Create a grouping (grouping1) that has a single group and a grouping (grouping2) that has several groups
      3. Create a forum in separate groups mode with the grouping1
      4. Create a forum in separate groups mode with the grouping2
      5. As a teacher try to post in those forums, in the first case there is no group select, in the second case there is a group select.

      As a result in the first case teacher is unable to create a post that is limited to the group. Whatever he creates is visible to everybody (including students who are not in the grouping). In the second case he is able to limit the post to one or another group

      There is an odd condition in the code, introduced in MDL-18128
      https://github.com/moodle/moodle/commit/2edcf21abf47551759ac80e3e59667a62f076813

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Mar/14