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

Custom fields are not affected by restore_decode_content

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
    • Hide

      Setup:

      • Create a new course.
      • Create a new page activity.
        • Embed an image.
        • Save.
        • Copy the image URL.
          • Right click > Copy image address (Chrome)
          • Right click > Copy image link (Firefox)
      • Create a new course custom field.
        • Site Adminstration > Courses > Course custom fields
        • Add a new category if one does not exist.
        • Add a Text area custom field.
      • Update the course custom field instance.
        • Navigate to the recently created course.
        • Navigate to the course settings page and scroll down.
        • Update the custom field with the following content.
          • Image URL: <paste image URL>
          • Image embed: <add new image by URL>
          • Page URL: <paste link to page activity>
        • Save.
      • Backup the course.
      • Restore as a new course.
      • Navigate to the home page where you can see the newly restored course.
      • Verify the URLs in the custom field are encoded.
        • Image URL: <encoded PLUGINFILEBYCONTEXT text>
        • Image embed: <broken image link>
        • Page URL: <encoded PAGEVIEWBYID text>
      Show
      Setup: Create a new course. Create a new page activity. Embed an image. Save. Copy the image URL. Right click > Copy image address (Chrome) Right click > Copy image link (Firefox) Create a new course custom field. Site Adminstration > Courses > Course custom fields Add a new category if one does not exist. Add a Text area custom field. Update the course custom field instance. Navigate to the recently created course. Navigate to the course settings page and scroll down. Update the custom field with the following content. Image URL: <paste image URL> Image embed: <add new image by URL> Page URL: <paste link to page activity> Save. Backup the course. Restore as a new course. Navigate to the home page where you can see the newly restored course. Verify the URLs in the custom field are encoded. Image URL: <encoded PLUGINFILEBYCONTEXT text> Image embed: <broken image link> Page URL: <encoded PAGEVIEWBYID text>

      When a course is backed up, custom fields correctly have their content transformed according to the encode_content_links API.

      However, when custom fields are restored, there is no restore_decode_content instance for decoding content.

            Unassigned Unassigned
            avdb Alexander Van der Bellen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 28 minutes
                28m

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