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

    XMLWordPrintable

Details

    • MOODLE_25_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL-40881_master
    • 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.

    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

      Attachments

        1. bonfire-screenshot-20130726-103059-702.png
          129 kB
          Nadav Kavalerchik
        2. mdl-40881_2_users.csv
          0.2 kB
          Nadav Kavalerchik
        3. mdl-40881_3_users_one_new.csv
          0.2 kB
          Nadav Kavalerchik

        Issue Links

          Activity

            People

              nadavkav Nadav Kavalerchik
              nadavkav Nadav Kavalerchik
              Rajesh Taneja Rajesh Taneja
              Andrew Lyons Andrew Lyons
              Adrian Greeve Adrian Greeve
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15