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

Custom profile fields are not validated for required uniqueness when uploading from a CSV file

    Details

    • Testing Instructions:
      Hide
      1. Create a new user's custom "Text Input" profile field named: "MyFavCourse" and set it to "unique". (See screen capture)
      2. Upload the first (mdl-40881_2_users.csv) CSV file. (to create new users) that should go smoothly with no errors.
      3. Upload the first (mdl-40881_3_users_one_new.csv) CSV file.
      4. Make sure you get "data preview" error(s) and are not allowed to upload CSV data.
      Show
      Create a new user's custom "Text Input" profile field named: "MyFavCourse" and set it to "unique". (See screen capture) Upload the first (mdl-40881_2_users.csv) CSV file. (to create new users) that should go smoothly with no errors. Upload the first (mdl-40881_3_users_one_new.csv) CSV file. Make sure you get "data preview" error(s) and are not allowed to upload CSV data.
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-40881_master

      Description

      1. Create a new user's custom "Text Input" profile field to "unique". (See screen capture)
      2. Upload a CSV file with duplicate values for that custom profile field.
        profile_field_MyFavCourse,firstname,lastname,email,username
        123,firstname1,lastname1,user11@gmail.com,student01
        124,firstname2,lastname2,user22@gmail.com,student02
        123,firstname3,lastname3,user33@gmail.com,student03
        
      3. Undesired outcome >> users custom profile fields are updated

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15