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

Database activity not using format_float/unformat_float for entries in latitude/longitude fields.

XMLWordPrintable

    • MOODLE_24_STABLE
    • MOODLE_25_STABLE
    • wip-MDL-37356-master
    • Hide

      Before you start

      • You should have an appropriate language pack installed such as French or Russian.

      Testing - Manual entry

      1. Create a database module.
      2. Add a Latitude/longitude field.
      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.
        • Try adding a location with data such as (-31,9468 115,8714)
        • Try a location with a positive latitude and a negative longitude (49,242175 -123,11383)
        • Try with lat or long with a period mark (-32.0053 115,8934)
        • Try with both with a period mark (-31.9422 115.8261)
        • Verify that the location data is displayed appropriately. (With commas in the chosen language and with a period mark when in English)

      Testing - csv import

      1. Create a csv file for the database activity, possibly export a file and alter that.
      2. Create entries with the above variations.
      3. Make sure that you are importing in a different language to English.
        • Verify that the location data is displayed appropriately. (With commas in the chosen language and with a period mark when in English)
      Show
      Before you start You should have an appropriate language pack installed such as French or Russian. Testing - Manual entry Create a database module. Add a Latitude/longitude field. Save the default templates. Switch your language to one that uses commas as a decimal delimiter, such as French. Add an entry. Try adding a location with data such as (-31,9468 115,8714) Try a location with a positive latitude and a negative longitude (49,242175 -123,11383) Try with lat or long with a period mark (-32.0053 115,8934) Try with both with a period mark (-31.9422 115.8261) Verify that the location data is displayed appropriately. (With commas in the chosen language and with a period mark when in English) Testing - csv import Create a csv file for the database activity, possibly export a file and alter that. Create entries with the above variations. Make sure that you are importing in a different language to English. Verify that the location data is displayed appropriately. (With commas in the chosen language and with a period mark when in English)

      Potential for locale issues.

            abgreeve Adrian Greeve
            damyon Damyon Wiese
            Frédéric Massart Frédéric Massart
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Mark Nelson Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.