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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4.6, 2.5.2
    • 2.1.2, 2.4.5, 2.5.1
    • Blocks, Groups
    • MOODLE_21_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • wip-MDL-29731-master
    • 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

      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!

            marina Marina Glancy
            gmorz Dominik Jeni
            Dan Poltawski Dan Poltawski
            Jérôme Mouneyrac Jérôme Mouneyrac
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.