Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-977

Email notices sent to users who have not set their preferences

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.7, 1.8, 1.9
    • 1.9.3
    • Block: Email_list
    • 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 )

      { continue; }

      }

            tmas Toni Mas
            adamann2 Ann Adamcik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.