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

Adding an image to a true false lesson page generates warning.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a lesson.
      2. Add a True or False question and make sure to add images everywhere possible.
      3. Add a matching question and make sure to add images everywhere possible.
      4. Add another page after the matching question.
      5. In the answer add an image.
      6. Preview the lesson.
      7. After selecting the answer for the True or False question you should be taken to the next page. You should not see a warning.
      Show
      Create a lesson. Add a True or False question and make sure to add images everywhere possible. Add a matching question and make sure to add images everywhere possible. Add another page after the matching question. In the answer add an image. Preview the lesson. After selecting the answer for the True or False question you should be taken to the next page. You should not see a warning.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-55366-master
    • Sprint:
      3.2 Sprint 4

      Description

      It generates the following warning:

      Before calling format_text(), the content must be processed with file_rewrite_pluginfile_urls()
      line 1313 of /lib/weblib.php: call to debugging()
      line 420 of /mod/lesson/pagetypes/truefalse.php: call to format_text()
      line 201 of /lib/formslib.php: call to lesson_display_answer_form_truefalse->definition()
      line 87 of /mod/lesson/pagetypes/truefalse.php: call to moodleform->__construct()
      line 2490 of /mod/lesson/locallib.php: call to lesson_page_type_truefalse->check_answer()
      line 82 of /mod/lesson/continue.php: call to lesson_page->record_attempt()
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16