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

Activity notifications are not handled consistently throughout all activities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.6, 3.7.2, 3.8
    • Fix Version/s: None
    • Component/s: Assignment, Feedback, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE

      Description

      Hi, our lectures and super user noticed a thing.

      The notifications upon submissions (when activated) in assignment, quiz and feedback do not trigger the same way.

      When assignment goes and checks

      get_enrolled_users($context, …

      and sends notification to those,
      quiz and feedback go and check

      get_users_by_capability($context,
      'mod/feedback:receivemail‘, …

      and sends notification to those.

      That's a difference which isn't good.

      The background is that a division of ours gives course category wise "Trainer invisible" roles to all 50 lecturers.
      Never having received any assignment submission notification of courses they're not directly enrolled in they now complain receiving a feedback completion notification of "one of not my courses".

      Does this report make any sense?

      It would be cool to amend this and I dare to label this even as a Bug.

      To reproduce:

      1. Create three users and create a course category.
      2. Create a course in that category.
      3. Enrol a user as editingteacher in that course.
      4. Enrol the second user as student in that course.
      5. Create an assignment activity and set "Notify graders about submissions" to "yes" (under Notifications").
      6. Create a feedback activity and set "Enable notification of submissions" to "yes" (under "Question and submission settings").
      7. As admin, under "Site Administration" → Users → Permissions → Manage roles, for non-editing teacher check the "Category" checkbox under "Context types where this role may be assigned" and save.
      8. As admin or manager, go to that category and do "Assign roles" and assign the Non-editing teacher tole to the remaining user.
      9. As student, go to that course and submit a assignment submission and respond to the feedback.

      WHAT ACTUALLY HAPPENS:
      The enrolled editing teacher receives both notifications. The category wise non-editing teacher receives the feedback notification but not the assignment notification.

      WHAT YOU EXPECTED:

      The enrolled editing teacher receives both notifications. The category wise non-editing teacher all activities should behave the same.

      Best,

      Luca

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lucaboesch Luca Bösch
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: