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

Empty HTML when exporting database activity as file download

    XMLWordPrintable

Details

    • MOODLE_401_STABLE
    • MOODLE_400_STABLE
    • MDL-76365-master
    • Hide

      Initial setup

      1. Log in as admin
      2. Go to Site admin > Advanced features and tick "Enable portfolios"
      3. Go to Site admin > Plugins > Portfolios > Manage portfolios
      4. Set File download as Enabled and visible
      5. Create a database activity (with Approval required set to No)
      6. Create at least two fields (e.g. short text and text fields)
      7. Make sure not to set a template yet.

      Test steps

      1. Log in as a student s1 and create at least one entry.
      2. Log in as another student s2 and create at least one entry
      3. Go to the list view
      4. Export your entries to the portfolio
        • Master: Actions > Export to portfolio
        • 400: Export to portfolio button right on the bottom part of the page.
      5. Make sure to select File download and export as HTML
      6. Save the file locally then open it and verify that the given user's entries have been exported correctly.
      Show
      Initial setup Log in as admin Go to Site admin > Advanced features and tick "Enable portfolios" Go to Site admin > Plugins > Portfolios > Manage portfolios Set File download as Enabled and visible Create a database activity (with Approval required set to No) Create at least two fields (e.g. short text and text fields) Make sure not to set a template yet. Test steps Log in as a student s1 and create at least one entry. Log in as another student s2 and create at least one entry Go to the list view Export your entries to the portfolio Master: Actions > Export to portfolio 400: Export to portfolio button right on the bottom part of the page. Make sure to select File download and export as HTML Save the file locally then open it and verify that the given user's entries have been exported correctly.
    • 2
    • Team Hedgehog Sprint 1.1, Team Hedgehog Sprint 1.2

    Description

      Issue discovered while testing MDLQA-16836.

      When exporting a database activity as a file download, the resultant HTML is completely empty. This was when adding an entry to the database activity with a textfield. I am not 100% sure if it is exclusive to the textfield entry, but in one of my tests I also used a picture entry, and the picture exported without issue.

      This only seems to affect 4.1 builds. I performed the same test on stable_400 and stable_311 and export behaves normally.

      Attachments

        1. (I) 6 Passed -- MDLQA-17254(400).png
          120 kB
          Kim Jared Lucas
        2. (I) 6 Passed -- MDLQA-17254(Master).png
          173 kB
          Kim Jared Lucas
        3. empty_html.png
          65 kB
          David Woloszyn
        4. html_exports_correctly_stable_400.png
          104 kB
          David Woloszyn
        5. html_exports_correctly_stable_master.png
          163 kB
          David Woloszyn

        Issue Links

          Activity

            People

              huongn@moodle.com Huong Nguyen
              david.woloszyn@moodle.com David Woloszyn
              David Woloszyn David Woloszyn
              Jun Pataleta Jun Pataleta
              Kim Jared Lucas Kim Jared Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 day, 2 hours, 1 minute
                  1d 2h 1m

                  Clockify

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