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

City/town defaults to the uploaders City/town when uploading users

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-80224-402
    • MDL-80224-403
    • Hide

      Testing is easier on a brand new/unconfigured site

      1. Login as admin
      2. Navigate to Users > Accounts > Upload users in site administration
      3. Upload the Example text file that is linked from the top of the form
      4. Press Upload users
      5. Press Show more under the Default values heading
      6. Make a note of the following field values (they will vary according to your own default site setup) - confirm they look correct
        • Select a country
        • Timezone
        • Preferred language
        • City/town
      7. Press Cancel
      8. Navigate to General > Location > Location settings in site administration
      9. Set the following values and save changes:
        • Default timezone: Pacific/Tahiti
        • Default country: French Polynesia
        • Default city: Papeete
      10. Navigate to General > Language > Language packs in site administration
      11. Install French (fr)
      12. Navigate to General > Language > Language settings in site administration
      13. Set the following values and save changes:
        • Default language: Français (fr)
      14. Repeat steps 2. to 5.
      15. Confirm the following fields match their corresponding values (and differ from those noted in step 6.):
        • Select a country: French Polynesia
        • Timezone: Pacific/Tahiti
        • Preferred language: Français (fr)
        • City/town: Papeete
      Show
      Testing is easier on a brand new/unconfigured site Login as admin Navigate to Users > Accounts > Upload users in site administration Upload the Example text file that is linked from the top of the form Press Upload users Press Show more under the Default values heading Make a note of the following field values (they will vary according to your own default site setup) - confirm they look correct Select a country Timezone Preferred language City/town Press Cancel Navigate to General > Location > Location settings in site administration Set the following values and save changes: Default timezone: Pacific/Tahiti Default country: French Polynesia Default city: Papeete Navigate to General > Language > Language packs in site administration Install French (fr) Navigate to General > Language > Language settings in site administration Set the following values and save changes: Default language: Français (fr) Repeat steps 2. to 5. Confirm the following fields match their corresponding values (and differ from those noted in step 6.): Select a country: French Polynesia Timezone: Pacific/Tahiti Preferred language: Français (fr) City/town: Papeete

    Description

      1. Populate the city/town field in your profile to something unique
      2. Go to upload users via CSV on your test Moodle 41 site
      3. Dont change any settings
      4. Upload
      5. Under the default dropdown you can see the preview includes your town.

       


      When uploading users via CSV if you do not define the city/town field the system copies the uploader's City/town (if set).

      So if my profile says Timbuktu all the users will be from Timbuktu. Very strange!

      • If you set a default city/town in the location settings this will override the value.
      • You can work around it in your CSV you can define the city field as blank.

      I was able to recreate on older versions of Moodle but I'm only really concerned with 41 and upwards at this point.

      Any questions please shout!

      Chris Young

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              Chris Young Chris Young
              Andrew Lyons Andrew Lyons
              Huong Nguyen Huong Nguyen
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              3 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 41 minutes
                  1h 41m

                  Clockify

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