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

        Issue Links

          Activity

            People

              jerome Jérôme Mouneyrac
              ralfh Ralf Hilgenstock
              Petr Skoda Petr Skoda
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Mar/08