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

Locked user profile fields prevent user profile update

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.7.1
    • Fix Version/s: None
    • Component/s: User management
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Server setup:

      • Moodle 3.7.1+ (Build: 20190809)
      • PHP Version 7.3.6
      • Apache 20120211
      • Linux CentOS

       

      Client setup:

      • Client Firefox 68.0.2 (64 bits) on Windows 10

       

      Reproduce:

      • Go to a user's profile edit using an account with the appropriate rights (ex: admin):
      • Choose an authentication method that prevents the login field from being changed (ex: Shibboleth).
        The profile field will then be set as disabled in HTML:
        <input type="text" class="form-control " name="username" id="id_username" value="data_protection_officer_2" size="20" disabled="disabled">
      • Submit the form using the "Save" button.
        An error appears mentioning that the login field is required. (see attached).

       

      Explanation:

      Disabled fields are not sended by the browser in the POST (see attached). (A solution here: https://stackoverflow.com/questions/7357256/disabled-form-inputs-do-not-appear-in-the-request) 

       

       

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: