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

Bulk user export - import problem; wrong export string.

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      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

              Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              ralfh Ralf Hilgenstock
              Tester:
              Petr Skoda
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08