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

Recent activities block doesn't show new forum posts when forum is set to "separate groups"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2, 2.4.5, 2.5.1
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Blocks, Groups
    • Labels:
    • Testing Instructions:
      Hide

      Do a little hack so recent activity block displays all activities regardless of the last course access (otherwise you'd need to have 4 simultaneous browser sessions for each user):
      edit function block_recent_activity::get_timestart() to always return the date in the past - comment everything except the first timestart declaration
      You'll have to do the same in course/recent.php (for testing the full report) keep the $lastlogin declaration and comment the lines below the declaration.
      For 2.4, the timestart lines to comment is in course/lib.php:print_recent_activity(). (still keep the declaration)

      Create a course, enrol 3 students, create 2 groups.

      1. Add a recent activity block and Activities block in the course.
      2. in the two groups, assign one student to both groups and two students to one different group each.
      3. create a forum with visible groups
      4. create several discussion topics, one in each group and one group-independed, add the same word to all topics (i.e. 'searchword')
      5. Login as each student and make sure you can see all posts in both block recent activity and recent activity report
      6. (master only) search forums by 'searchword', make sure all posts are found
      7. (master only) click on 'forums' in activity block, make sure that posts count is correct
      8. Change the forum group mode to separate groups
      9. Login as each student and make sure you can see only and all posts in your groups in both block recent activity and recent activity report
      10. (master only) search forums by 'searchword', make sure appropriate posts are found
      11. (master only) click on 'forums' in activity block, make sure that posts count is correct
      Show
      Do a little hack so recent activity block displays all activities regardless of the last course access (otherwise you'd need to have 4 simultaneous browser sessions for each user): edit function block_recent_activity::get_timestart() to always return the date in the past - comment everything except the first timestart declaration You'll have to do the same in course/recent.php (for testing the full report) keep the $lastlogin declaration and comment the lines below the declaration. For 2.4, the timestart lines to comment is in course/lib.php:print_recent_activity(). (still keep the declaration) Create a course, enrol 3 students, create 2 groups. Add a recent activity block and Activities block in the course. in the two groups, assign one student to both groups and two students to one different group each. create a forum with visible groups create several discussion topics, one in each group and one group-independed, add the same word to all topics (i.e. 'searchword') Login as each student and make sure you can see all posts in both block recent activity and recent activity report (master only) search forums by 'searchword', make sure all posts are found (master only) click on 'forums' in activity block, make sure that posts count is correct Change the forum group mode to separate groups Login as each student and make sure you can see only and all posts in your groups in both block recent activity and recent activity report (master only) search forums by 'searchword', make sure appropriate posts are found (master only) click on 'forums' in activity block, make sure that posts count is correct
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-29731-master

      Description

      When multiple groups are used, the "recent activity block" shows the following new forum posts:
      (as a member of one group)

      • visible groups:
      1. posts/threads for "all participants"
      2. posts/threads for the own group of the participant
      3. posts/threads for all the other groups

      => Fine!

      • separate groups:
      1. posts/threads for "all participants" (OK)

      => BUT: Posts by members of the participants' own group are NOT shown!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/13