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

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

    Details

    • Testing Instructions:
      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)
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-37356-master

      Description

      Potential for locale issues.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/13