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

Warning message shown when editing a user's profile with pending email change

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Using a Moodle instance with email sending not configured, login as a student.
      2. Go to Preferences ▶︎ User account ▶︎ Edit profile
      3. Change the email address and click "Update profile"
      4. Confirm that you see the "could not send email!" message.
      5. Logout then login as admin.
      6. Make sure that developer mode is on.
      7. Go to Site administration ▶︎ Users ▶︎ Accounts ▶︎ Browse list of users
      8. Click the Edit icon for the user with the pending email change.
      9. On the Email field, confirm that something like "Change pending. Open the link sent to you at [user@email.com]." is being shown.
      10. Make some changes on the user's profile (i.e. description) and click "Update profile"
      11. Confirm that
        There are no warning messages displayed.
        The profile is successfully updated and the user is redirected to the Browse list of users page.
      Show
      Using a Moodle instance with email sending not configured, login as a student. Go to Preferences ▶︎ User account ▶︎ Edit profile Change the email address and click "Update profile" Confirm that you see the "could not send email!" message. Logout then login as admin. Make sure that developer mode is on. Go to Site administration ▶︎ Users ▶︎ Accounts ▶︎ Browse list of users Click the Edit icon for the user with the pending email change. On the Email field, confirm that something like "Change pending. Open the link sent to you at [user@email.com]." is being shown. Make some changes on the user's profile (i.e. description) and click "Update profile" Confirm that There are no warning messages displayed. The profile is successfully updated and the user is redirected to the Browse list of users page.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51837-master

      Description

      Steps to reproduce:

      1. Using a Moodle instance with email sending not configured, login as a student.
      2. Go to Preferences ▶︎ User account ▶︎ Edit profile
      3. Change the email address and click "Update profile"
      4. Confirm that you see the "could not send email!" message.
      5. Logout then login as admin.
      6. Make sure that developer mode is on.
      7. Go to Site administration ▶︎ Users ▶︎ Accounts ▶︎ Browse list of users
      8. Click the Edit icon for the user with the pending email change.
      9. On the Email field, confirm that something like "Change pending. Open the link sent to you at [user@email.com]." is being shown.
      10. Make some changes on the user's profile (i.e. description) and click "Update profile"
      11. The following messages will be shown:

        Notice: Undefined property: stdClass::$email in /Users/junpataleta/Work/moodles/integration_29/moodle/user/editadvanced_form.php on line 262

        Notice: Undefined property: stdClass::$email in /Users/junpataleta/Work/moodles/integration_29/moodle/user/editadvanced_form.php on line 263

        Attachments

          Activity

            People

            Assignee:
            jpataleta Jun Pataleta
            Reporter:
            jpataleta Jun Pataleta
            Peer reviewer:
            Ryan Wyllie
            Integrator:
            Dan Poltawski
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/16