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

Invalid User error when add new user

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide
      1. Login as an admin.
      2. Navigate to "Site administration / Users / Accounts / User profile fields"
      3. Under "Create a new profile field", select "Text input"
      4. Enter a "Short name" and "Name" for the new profile field.
      5. Save the changes.
      6. Navigate to "Site administration / Users / Accounts / Add a new user"
        • Confirm that the form loads correctly.
      7. Fill out the form to add the new user's details.
      8. Save the changes.
        • Confirm that the new user has been successfully created.
      9. Edit the user's profile and save the changes.
        • Confirm that the user's details are successfully updated.
      Show
      Login as an admin. Navigate to " Site administration / Users / Accounts / User profile fields " Under " Create a new profile field ", select " Text input " Enter a " Short name " and " Name " for the new profile field. Save the changes. Navigate to " Site administration / Users / Accounts / Add a new user " Confirm that the form loads correctly. Fill out the form to add the new user's details. Save the changes. Confirm that the new user has been successfully created. Edit the user's profile and save the changes. Confirm that the user's details are successfully updated.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60824-master-profilefield

      Description

      i get error " invalid user " when i tried add new user .

      i have custom profile fields and i upgrade profile_field_base::__construct() for third argument but I keep getting this error.i think so ;

      context_user::instance() failed because new user id =  -1 

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/Jan/18