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

The \core\event\message_sent class should be passed the system context (for now).

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Events API, Messages
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Run "vendor/bin/phpunit message/tests/events_test.php" and ensure all passes.
      Test 2
      1. Log into a site that has at least two users.
      2. Click on your name to take you to your profile.
      3. Click on 'My profile' then 'Messages'.
      4. Send the user a message.
      5. Check that there is a 'message write' log entry at <yoursite>/report/log/index.php.
      Show
      Test 1 Run "vendor/bin/phpunit message/tests/events_test.php" and ensure all passes. Test 2 Log into a site that has at least two users. Click on your name to take you to your profile. Click on 'My profile' then 'Messages'. Send the user a message. Check that there is a 'message write' log entry at <yoursite>/report/log/index.php.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-44704_master
    • Story Points:
      3
    • Sprint:
      BACKEND Sprint 12

      Description

      It was decided in SCRUM that we should be passing the system context when sending messages.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              markn Mark Nelson
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Marina Glancy
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14