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

Deleting a forum discussion does not trigger post_deleted events

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.8, 2.9
    • Fix Version/s: 2.8.9, 2.9.3
    • Component/s: Forum
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Enable standard logging (Site administration > Plugins > Logging).
      2. Create a forum.
      3. Add a discussion.
      4. Add replies.
      5. Delete the discussion
      6. Visit your 'mdl_logstore_standard_log' stable and confirm there are post_deleted events for the replies (and one for the discussion - when you create a discussion it also creates a post).
      Test 2
      1. Create a forum.
      2. Add a discussion.
      3. Add replies.
      4. Delete one of the replies.
      5. Visit your 'mdl_logstore_standard_log' stable and confirm there is a post_deleted event for the reply you deleted.
      Test 3
      1. Run all the unit tests in mod/forum/tests.
      Test 4
      1. Run all behat tests with the tag @mod_forum.
      Show
      Test 1 Enable standard logging (Site administration > Plugins > Logging). Create a forum. Add a discussion. Add replies. Delete the discussion Visit your 'mdl_logstore_standard_log' stable and confirm there are post_deleted events for the replies (and one for the discussion - when you create a discussion it also creates a post). Test 2 Create a forum. Add a discussion. Add replies. Delete one of the replies. Visit your 'mdl_logstore_standard_log' stable and confirm there is a post_deleted event for the reply you deleted. Test 3 Run all the unit tests in mod/forum/tests. Test 4 Run all behat tests with the tag @mod_forum.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51782_master

      Description

      1. Enable standard logging (Site administration > Plugins > Logging).
      2. Create a forum.
      3. Add a discussion.
      4. Add replies.
      5. Delete the discussion
      6. Visit your 'mdl_logstore_standard_log' stable and notice how there are no 'post_deleted' events.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Nov/15