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

mod_data does not pre-process data correctly on import

    XMLWordPrintable

Details

    • MOODLE_31_STABLE
    • MOODLE_32_STABLE
    • MDL-55196_master
    • Hide

      Pre-requisites

      • Debugging should be set to "Developer" level.
      • You should have an appropriate language pack installed such as French or Russian.

      Testing: Import of latlong.

      1. Create a database module.
      2. Add a Latitude/longitude field called latlong.
      3. Save the default templates.
      4. Switch your language to one that uses commas as a decimal delimiter, such as French.
      5. Add an entry with data (-31,9468 115,8714)
      6. Add an entry with data (49,242175 -123,11383)
      7. Add an entry with data (-32.0053 115,8934)
      8. Add an entry with data (-31.9422 115.8261)
      9. Create a CSV file with the following lines:
        • latlong
        • -31,9468 115,8714
        • 49,242175 -123,11383
        • -32.0053 115,8934
        • -31.9422 115.8261
      10. Import the CSV file into the database module and check that the imported entries look the same as the manually keyed ones.

      Testing: Import of URLs.

      1. Create a database module.
      2. Add a URL field called url.
      3. Save the default templates.
      4. Add an entry with data http://bob.com
      5. Add an entry with data http://www.joe.com/noext
      6. Add an entry with data http://blamo.com/path/index.html
      7. Create a CSV file with the following lines:
      8. Import the CSV file into the database module and check that the imported entries look the same as the manually keyed ones and the links work.
      Show
      Pre-requisites Debugging should be set to "Developer" level. You should have an appropriate language pack installed such as French or Russian. Testing: Import of latlong. Create a database module. Add a Latitude/longitude field called latlong. Save the default templates. Switch your language to one that uses commas as a decimal delimiter, such as French. Add an entry with data (-31,9468 115,8714) Add an entry with data (49,242175 -123,11383) Add an entry with data (-32.0053 115,8934) Add an entry with data (-31.9422 115.8261) Create a CSV file with the following lines: latlong -31,9468 115,8714 49,242175 -123,11383 -32.0053 115,8934 -31.9422 115.8261 Import the CSV file into the database module and check that the imported entries look the same as the manually keyed ones. Testing: Import of URLs. Create a database module. Add a URL field called url. Save the default templates. Add an entry with data http://bob.com Add an entry with data http://www.joe.com/noext Add an entry with data http://blamo.com/path/index.html Create a CSV file with the following lines: url http://bob.com http://www.joe.com/noext http://blamo.com/path/index.html Import the CSV file into the database module and check that the imported entries look the same as the manually keyed ones and the links work.

    Description

      Where custom fields alter data in the \data_field_tag::update_content method these changes do not get run during bulk imports.

      Attachments

        Activity

          People

            andrew_dc_hancox Andrew Hancox
            andrew_dc_hancox Andrew Hancox
            Adrian Greeve Adrian Greeve
            Dan Poltawski Dan Poltawski
            Simey Lameze Simey Lameze
            Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5/Dec/16