Moodle
  1. Moodle
  2. MDL-26653

improve custom profile field support in csv user uploads

    Details

    • Affected Branches:
      MOODLE_20_STABLE
    • Rank:
      16233

      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

        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.

            People

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

              Dates

              • Created:
                Updated: