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

Add event when a message is deleted

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 3.0
    • Component/s: Messages
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Log in as a user (user1).
      2. Send a message to another user (user2).
      3. As user1 delete this message.
      4. Log in as user2 and delete the message.
      5. Check the site logs and confirm there are two events and that the descriptions are different (as one user deleted a message they sent and another they received).
      Test 2
      1. Run the unit tests in message/tests/events_test.php.
      Show
      Test 1 Log in as a user (user1). Send a message to another user (user2). As user1 delete this message. Log in as user2 and delete the message. Check the site logs and confirm there are two events and that the descriptions are different (as one user deleted a message they sent and another they received). Test 2 Run the unit tests in message/tests/events_test.php.
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51312_master
    • Sprint:
      Team Both Sprint 1

      Description

      After MDL-29801 was introduced we now have the ability to delete messages - it would be beneficial to have a message_deleted event for when this happens.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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