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

validate lang in csv user uploads

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      1/ create some csv file with user details including lang columns - use both valid and invalid language codes
      2/ upload the file and verify results in user database table (add+update)
      3/ change the file - break some correct lang codes
      4/ upload again (add+update) and verify results in user database table data

      Show
      1/ create some csv file with user details including lang columns - use both valid and invalid language codes 2/ upload the file and verify results in user database table (add+update) 3/ change the file - break some correct lang codes 4/ upload again (add+update) and verify results in user database table data
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w02_MDL-37064_m25_languser

      Description

      We should not allow invalid lang input because it might break elsewhere in core - see the linked issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Integrator:
              Dan Poltawski
              Tester:
              David Monllaó
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

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