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

Deleting a page in a lesson does not remove files from fileareas

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.7, 2.5.3, 2.6
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Files API, Lesson
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a lesson, with a "File pop-up"
      2. Add 2 content pages with an image in the description (A and B)
      3. Delete the page A
      4. Make sure that the file from A no longer exists in the lesson area
      5. Delete the lesson
      6. Make sure that
        • The file of B no longer exists in the lesson area
        • The file pop-up no longer exists in the lesson area either

      If MDL-42212 is integrated, you can use the Server Files repository to check if the file is deleted, otherwise observe the mdl_files table.

      Show
      Create a lesson, with a "File pop-up" Add 2 content pages with an image in the description (A and B) Delete the page A Make sure that the file from A no longer exists in the lesson area Delete the lesson Make sure that The file of B no longer exists in the lesson area The file pop-up no longer exists in the lesson area either If MDL-42212 is integrated, you can use the Server Files repository to check if the file is deleted, otherwise observe the mdl_files table.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-43371-master

      Description

      1. Create a lesson
      2. Add a content page with an image in the description
      3. Delete the page

      Expected

      • The file no longer exists in the lesson area

      Actual

      • The file has not been deleted from its area

      If MDL-42212 is integrated, use the Server Files to check if the file is deleted, otherwise observe the mdl_files table.

      The same problem happens when deleting a lesson.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14