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

Locked user profile fields prevent user profile update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.7.1
    • User management
    • None
    • MOODLE_37_STABLE

      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) 

       

       

       

            Unassigned Unassigned
            n.mouillet@helmo.be Nicolas Mouillet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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