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

Admin settings page for supportemail shows incorrect email

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as primary site admin.
      2. Go to /admin/settings.php?section=supportcontact (Site administration ► Server ► Support contact).
      3. Check the default values for the support name and email. Confirm that:
        • The default support name should be the primary admin's full name.
        • The default support email should be the primary admin's email.
      4. Create a second user.
      5. Give this user site admin permissions. (Site administration ► Users ► Permissions ► Site administrators)
      6. Log in as this user, go to /admin/settings.php?section=supportcontact (Site administration ► Server ► Support contact).
      7. Check the default values for the support name and email. Confirm that:
        • The default support name should be the primary admin's full name.
        • The default support email should be the primary admin's email.
      8. Send any email which uses the support email eg a new user account, confirm it uses the first primary admin email
      Show
      Login as primary site admin. Go to /admin/settings.php?section=supportcontact (Site administration ► Server ► Support contact). Check the default values for the support name and email. Confirm that: The default support name should be the primary admin's full name. The default support email should be the primary admin's email. Create a second user. Give this user site admin permissions. (Site administration ► Users ► Permissions ► Site administrators) Log in as this user, go to /admin/settings.php?section=supportcontact (Site administration ► Server ► Support contact). Check the default values for the support name and email. Confirm that: The default support name should be the primary admin's full name. The default support email should be the primary admin's email. Send any email which uses the support email eg a new user account, confirm it uses the first primary admin email
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-53234-support-email

      Description

      In the settings page it shows the default email of the admin user you are logged in as, where as in reality when the email is actually sent and it's missing, it defaults to the first admin users email. If you only have one admin user then these happen to be the same, which is why the issue has probably been masked for so long.

      Steps to reproduce:

      1. Login as primary site admin.
      2. Create a second user.
      3. Give this user site admin permissions. (Site administration ► Users ► Permissions ► Site administrators)
      4. Log in as this user, go to /admin/settings.php?section=supportcontact (Site administration ► Server ► Support contact).
      5. Check the default values for the support name and email.
        • Expected:
          • The default support name should be the primary admin's full name.
          • The default support email should be the primary admin's email.
        • Actual:
          • The default support name is shown as the other admin's full name.
          • The default support name is shown as the other admin's email.

        Attachments

          Activity

            People

            Assignee:
            brendanheywood Brendan Heywood
            Reporter:
            brendanheywood Brendan Heywood
            Peer reviewer:
            Jun Pataleta
            Integrator:
            Andrew Nicols
            Tester:
            Simey Lameze
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/May/16