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

Delete course fails to delete forum discussions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: Forum
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      When deleting a course, forum_delete_instance calls forum_delete_discussion, which in turn calls forum_delete_post with default second parameter $children=false. This causes forum_delete_post to fail if the post has replies. Consequently this leaves orphaned posts in the database.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: