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

Exporting glossary entry with rich decription to portfolio

    Details

    • Testing Instructions:
      Hide

      Make sure the site setting "enableportfolios" is enabled.

      1. Create a new glossary
      2. Add an entry containing only text
      3. Add an entry containing text and an image in the description
      4. Add an entry with text in description and an image as attachment

      Export each of the entries to a range of the available portfolios. Go to /admin/portfolio.php to turn them on and off. You need to enable one portfolio, export the various entries, disable that portfolio and enable a different one.

      Some entries will not be able to be exported to some portfolio types. For example entries with an image attached or in the description cannot be exported to google docs.

      Show
      Make sure the site setting "enableportfolios" is enabled. Create a new glossary Add an entry containing only text Add an entry containing text and an image in the description Add an entry with text in description and an image as attachment Export each of the entries to a range of the available portfolios. Go to /admin/portfolio.php to turn them on and off. You need to enable one portfolio, export the various entries, disable that portfolio and enable a different one. Some entries will not be able to be exported to some portfolio types. For example entries with an image attached or in the description cannot be exported to google docs.
    • Affected Branches:
      MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull Master Branch:
      wip-MDL-33829-master

      Description

      1. Create a new glossary
      2. Add an entry containing only text
      3. Add an entry containing text and an image in the description
      4. Add an entry with text in description and an image as attachment
      5. Export each of the entries to any portfolio

      Actual result:

      • When exporting the entry with image in the description (to file download/Google Docs in my case), an exception is raised:

      Failed to package up your data for export: original error was Rewriting file output is not supported for this format
       
      More information about this error
      Debug info:
      Error code: callercouldnotpackage
      Stack trace:
       
          line 453 of /lib/portfolio/exporter.php: portfolio_export_exception thrown
          line 227 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage_package()
          line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
          line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
          line 233 of /lib/portfolio/exporter.php: call to portfolio_exporter->process_stage()
          line 268 of /portfolio/add.php: call to portfolio_exporter->process_stage()

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Nov/12