Moodle
  1. Moodle
  2. MDL-26653

improve custom profile field support in csv user uploads

    Details

    • Affected Branches:
      MOODLE_20_STABLE

      Description

      MDL-26564 fixes some issues, unfortunately following is far from optimal:
      1/ menu field expects numerical index, not the value (0,1,2,3, ...)
      2/ date field expects the date to be within the range - we need to add current specified year to the list in the user profile edit pages

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Michael de Raadt added a comment -

            This issue has been partly resolved. The menu values are now input as values rather than indices.

            Show
            Michael de Raadt added a comment - This issue has been partly resolved. The menu values are now input as values rather than indices.
            Hide
            Tim Lock added a comment -

            But this broken when you use user upload of a csv and pick a default value from the upload user form instead of adding within the csv.

            [profile_field_title] => 2 [profile_field_funding] => 1 converted to [profile_field_title] => [profile_field_funding] => by uu_pre_process_custom_profile_data() then convert_external_data in menu field code.

            Show
            Tim Lock added a comment - But this broken when you use user upload of a csv and pick a default value from the upload user form instead of adding within the csv. [profile_field_title] => 2 [profile_field_funding] => 1 converted to [profile_field_title] => [profile_field_funding] => by uu_pre_process_custom_profile_data() then convert_external_data in menu field code.
            Hide
            Marina Glancy added a comment -

            I created several fields with different types and different default values. I attached screenshots of how they look in editadvanced form and uploaduser form:

            1. Default values are not picked up for textfield and textarea
            2. Non required date field is populated with current date in uploaduser form (should be 0 as in editadvanced)

            Everything else described above seems to be fixed (menu fields are populated properly, date fields are within the range).

            Show
            Marina Glancy added a comment - I created several fields with different types and different default values. I attached screenshots of how they look in editadvanced form and uploaduser form: 1. Default values are not picked up for textfield and textarea 2. Non required date field is populated with current date in uploaduser form (should be 0 as in editadvanced) Everything else described above seems to be fixed (menu fields are populated properly, date fields are within the range).

              People

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

                Dates

                • Created:
                  Updated: