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

mod_data: Database summary page doesn't format module intro

XMLWordPrintable

    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • master-MDL-69752
    • Hide
      1. Create a course.
      2. Create a Database activity with an image in its intro.
      3. Add Activities block.
      4. Access Databases link from the Activities block.
      5. Confirm, that image is displayed in the activity description.
      Show
      Create a course. Create a Database activity with an image in its intro. Add Activities block. Access Databases link from the Activities block. Confirm , that image is displayed in the activity description.

      It's been found that `mod/data/index.php` page doesn't use `format_module_intro()` when building the list of database activities for a given course.

      Therefore, database descriptions doesn't display the images (and other files) and a debugging message is shown:

      Before calling format_text(), the content must be processed with file_rewrite_pluginfile_urls()
      line 1347 of /lib/weblib.php: call to debugging()
      line 133 of /mod/data/index.php: call to format_text()
      

       

      Here is a screenshot:

            mikhailgolenkov Misha Golenkov
            mikhailgolenkov Misha Golenkov
            Dmitrii Metelkin Dmitrii Metelkin
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 20 minutes
                1h 20m

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