MDL-36712: Assignment - Do not always send feedback available emails when grade is...
authorDamyon Wiese <damyon@moodle.com>
Wed, 21 Nov 2012 08:26:47 +0000 (16:26 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 4 Jan 2013 06:46:14 +0000 (14:46 +0800)
commitd6c673ed4efa58beda4053d9ad644badf9650529
tree0b76d68e1b18b37b01bc843643646367908c235d
parent9da506c2a3c3dc9b3e650ef3f4987581b86f8274
MDL-36712: Assignment - Do not always send feedback available emails when grade is created

The entry in the assign_grades table contains grades feedback and other settings such as locked.
Only send the student an email about new feedback if it is actually grades or feedback that
has been added. This is done by using another state for the mailed flag (2) which means "unset".
mod/assign/feedback/file/importziplib.php
mod/assign/feedback/file/locallib.php
mod/assign/feedback/offline/locallib.php
mod/assign/locallib.php