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

Can not Import a tab separated file with tabs at the end.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide

      Test steps

      1. Go to [Settings ► Users ► Accounts ► User profile fields].
      2. Create a user profile field.
      3. Go to [Settings ► Users ► Accounts ► Bulk user actions].
      4. Download the users as a text document (.csv).
      5. Alter the file so that the separators are now tabs. (Through open office, excel, or manually)
      6. Go to [Settings ► Users ► Accounts ► Upload users].
      7. Upload the tab separated file.
      8. Set the 'CSV delimiter' to '\t'.
        • Ensure that there is no error displayed, and that there is a preview of the file.
      Show
      Test steps Go to [Settings ► Users ► Accounts ► User profile fields] . Create a user profile field. Go to [Settings ► Users ► Accounts ► Bulk user actions] . Download the users as a text document (.csv). Alter the file so that the separators are now tabs. (Through open office, excel, or manually) Go to [Settings ► Users ► Accounts ► Upload users] . Upload the tab separated file. Set the 'CSV delimiter' to '\t'. Ensure that there is no error displayed, and that there is a preview of the file.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-36365-master

      Description

      Importing a tab separated file with tabs at the end doesn't work.
      This is because the trim() function by default removes tabs when trimming the data.

        Attachments

          Activity

            People

            Assignee:
            abgreeve Adrian Greeve
            Reporter:
            abgreeve Adrian Greeve
            Integrator:
            Dan Poltawski
            Tester:
            Rossiani Wijaya
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Dec/12