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

Moodle sends emails to all teachers.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Environment:
      Windows 2000
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      Problem

      Moodle 1.5 notifies all teachers when a student uploads an assignment.

      Need

      Moodle should send an email only to the teacher whose Group that student is in.

      Solution

      The issue is in /lib/datalib.php file in function get_group_teachers().

      The bug is in the code that reads

      unset($teacher[$key]);

      It should be

      unset($teachers[$key]);

      Supplied by Ilshat Fattakhov.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: