-
Bug
-
Resolution: Fixed
-
Minor
-
1.9.3
-
None
-
Easy
-
MOODLE_19_STABLE
-
MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
The cron function is sending email notices to users who have not set or changed their email_list settings. The default value for trackbymail is no. This is causing lots of confusion for our users - they are getting notices of new email, but when they go to look at their setting, they see it is set to 'no'.
Here's the relevant bit of code. Either case 1.1 should be "Don't send mail"., or the default trackbymail setting should be changed to 'yes'.
// Preferences! Can send mail?
// Case:
// 1.- Site allow send trackbymail
// 1.1.- User doesn't define this settings -> Send mail
// 1.2.- User allow trackbymail -> Send mail
// 1.3.- User denied trackbymail -> Don't send mail
// User can definied this preferences?
if ( $preferences = get_record('email_preference', 'userid', $user->id) ) {
if ( $preferences->trackbymail == 0 )
}