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

Wrong content type when exporting user tours

    XMLWordPrintable

    Details

      Description

      When exporting user tours it has ICS format instead of JSON

      1. Login as administrator
      2. Navigate to Site administration -> Appearance -> User Tours
      3. Click on Tour repository
      4. Download one of the tours
      5. Navigate to Site administration -> Appearance -> User Tours
      6. Click on Import tour and upload the downloaded tour
      7. Add 'Ensure that the newly imported tour works as expected.'
      8. Click on the tour Export tour icon for the tour you just imported or some existing tour.
      9. The exported file will have ics extension which is not correct

      Looks like bug was from beginning https://github.com/moodle/moodle/blame/511a87f5fc357f18a4c53911f6e6c7f7b526246e/admin/tool/usertours/classes/manager.php#L448

        Attachments

        1. MDL-71338_Test Passed.PNG
          146 kB
          Gladys Basiana
        2. MDL-71338-1.png
          53 kB
          Paul Holden
        3. MDL-71338-2.png
          56 kB
          Paul Holden
        4. tour_export_2_1618432513.json
          2 kB
          Paul Holden

          Issue Links

            Activity

              People

              Assignee:
              pholden Paul Holden
              Reporter:
              ilyatregubov Ilya Tregubov
              Peer reviewer:
              Michael Hawkins Michael Hawkins
              Integrator:
              Jake Dallimore Jake Dallimore
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 12 minutes
                  3h 12m