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

Uploading CSV of Users Fails for Optional Custom Profile Fields

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.10.7
    • Fix Version/s: None
    • Component/s: User management
    • Labels:
      None
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      Steps to reproduce:

      • Create a custom user profile field of type menu.
      • Leave the "Required" checkbox unchecked.
      • Add some options.
      • Leave Default blank.
      • Attempt to upload a user spreadsheet containing two records. One record has data for the custom field. The next record does not have data for the custom field.

      You will be shown an invalid field error in the status when previewing the upload.

      Expected Behavior: You should be allowed to leave the field blank in the CSV since the field is marked as optional.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            davidsheart02 Nathaniel Latoni
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: