Moodle
  1. Moodle
  2. MDL-3606

Moodle sends emails to all teachers.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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
    • Rank:
      8490

      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.

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Petr Skoda (skodak at centrum.cz) Saturday, 9 July 2005, 10:02 PM:

        working on it:

        http://moodle.org/mod/forum/discuss.php?d=27123

        From Martin Dougiamas (martin at moodle.com) Sunday, 10 July 2005, 09:08 PM:

        Skodak, just check it in, thanks.

        KitS, thanks for the fix!

        Show
        Martin Dougiamas added a comment - From Petr Skoda (skodak at centrum.cz) Saturday, 9 July 2005, 10:02 PM: working on it: http://moodle.org/mod/forum/discuss.php?d=27123 From Martin Dougiamas (martin at moodle.com) Sunday, 10 July 2005, 09:08 PM: Skodak, just check it in, thanks. KitS, thanks for the fix!
        Hide
        Michael Blake added a comment -

        assign to a valid user

        Show
        Michael Blake added a comment - assign to a valid user

          People

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

            Dates

            • Created:
              Updated:
              Resolved: