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

Bulk user export - import problem; wrong export string.

    XMLWordPrintable

Details

    • MOODLE_19_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      user_bulk_download.php

      Instaed of $v->name it should be $v-shortname

      if ($extrafields = get_records_select('user_info_field')) {
      foreach ($extrafields as $n=>$v)

      { $fields['profile_field_'.$v->shortname] = 'profile_field_'.$v->name; }

      }

      It should be

      if ($extrafields = get_records_select('user_info_field')) {
      foreach ($extrafields as $n=>$v)

      { $fields['profile_field_'.$v->shortname] = 'profile_field_'.$v->shortname; }

      }

      Error and solution found by Lars Kobbe

      Attachments

        1. MDL-16929.patch
          0.7 kB
          Jérôme Mouneyrac

        Issue Links

          Activity

            People

              jerome Jérôme Mouneyrac
              ralfh Ralf Hilgenstock
              Petr Skoda Petr Skoda
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Mar/08