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

PHP Notice when submitting change password form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide

      Testing difficulty: easy

      1. Login to Moodle
      2. Turn debugging to DEVELOPER level
      3. Click Administration > My profile settings > Change password
      4. Fill out the form and submit: no warning is displayed
      Show
      Testing difficulty: easy Login to Moodle Turn debugging to DEVELOPER level Click Administration > My profile settings > Change password Fill out the form and submit: no warning is displayed
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      m25_MDL-37515_Notice_when_submitting_change_password_form

      Description

      Steps to reproduce:

      1. Login to site
      2. Turn debugging to developer level
      3. Click My Profile Settings > Change Password
      4. Fill out the form and submit

      What happens:

      After submitting the change password form I get:

      Notice: Undefined variable: user in /home/simonc/code/mdl22/login/change_password.php on line 115

      The password is successfully changed though.

      What should happen:

      No warning should be displayed.

      Seems to be due to this patch:

      https://tracker.moodle.org/browse/MDL-21342

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matteo Matteo Scaramuccia
              Reporter:
              simoncoggins Simon Coggins
              Peer reviewer:
              Petr Skoda
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Rossiani Wijaya
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/May/13