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

Custom profile field marked 'required' can be left blank upon manually creating new account

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_405_STABLE

      Issue summary:

      When creating a new manual user account, the account creation page can be saved even though custom user profile fields marked 'Required' have not been entered. This only applies when the account is created manually e.g. by a Site Administrator. It behaves correctly when a user creates their own account via self-registration.

      Steps to replicate:

      1. Navigate to Site Administration>Users>User profile fields
      2. Click 'Create a new profile field'>Drop down menu (any type should work)
      3. Fill out name, shortname, menu options
      4. Set 'Is this field required?'>Yes
      5. Save changes
      6. Go to Site administration>Users>Accounts>Add a new user
      7. Fill in all the necessary fieldsĀ except the custom profile field you created
      8. Save changes

      Observed:

      The user account is created successfully

      Expected:

      The user creating the account (e.g. admin) is redirected to the same page with a message 'Please fill in required fields' and the profile field flagged with an alert icon. Account cannot be created until required field is filled in.

            Unassigned Unassigned
            prankin Phillip Rankin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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