danmarsden/moodle-mod_attendance

Group sessions not added to Moodle calendar unless session for all is present

Opened this issue · 2 comments

Moodle 4.0.11
Plugin version 4.0.11 2022083108

  • Group sessions are not being added to Moodle calendar unless session for 'all' is also present - this applies to both me (site admin & enrolled teacher) and student view.
  • Both dashboard and course calendar are affected.
  • Relevant plugin settings are enabled e.g attendance | enablecalendar.
  • Nothing appears in Plugins -> Attendance -> Reset calendar.

Steps to recreate:

  1. Create Attendance module with visible groups
  2. Create group session
  3. Confirm not visible to group members in Calendar
  4. Go back and create session for all
  5. Confirm the group session (and all session) is now visible in calendar
  6. Delete session for all from attendance module
  7. Confirm the group session is missing from the calendar again

Alternative steps:

  1. Add Attendance module with group mode as separate groups
  2. Add a session for a group
  3. Confirm that it's not visible to group members in Calendar
  4. Change group mode to no groups or visible groups
  5. Add a session for all
  6. Confirm the original group session is now visible in the calendar

Thanks for the detailed report! - it does sound like a bug - if you have internal development capabilities, feel free to submit a pull request with a suggested fix and I'll take a look - otherwise this might sit here for a while. thanks!

Thanks Dan.
Unfortunately I can't develop - but I was able to replicate the issue in Moodle 4.2.3 with plugin version 2023041800.