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
          MDL-71338_Test Passed.PNG
          146 kB
        2. MDL-71338-1.png
          MDL-71338-1.png
          53 kB
        3. MDL-71338-2.png
          MDL-71338-2.png
          56 kB
        4. tour_export_2_1618432513.json
          2 kB

        Issue Links

          Activity

            People

              pholden Paul Holden
              ilyatregubov Ilya Tregubov
              Michael Hawkins Michael Hawkins
              Jake Dallimore Jake Dallimore
              Gladys Basiana Gladys Basiana
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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