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

The event user_profile_viewed should be triggered on the user/profile.php page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3, 2.7
    • Fix Version/s: 2.6.4, 2.7.1
    • Component/s: Events API
    • Labels:
    • Testing Instructions:
      Hide
      1. Open a course►enrol a user and visit his profile.
      2. Open Site Administration►Reports►Logs and check the log entry has the course information:

        The user with id 'XX' viewed the profile for the user with id 'XX' in the course with id 'XX'.
        

      3. Open Site Administration►Accounts►Browse list of users and view a user profile.
      4. Open Site Administration►Reports►Logs and check the log entry doesn't have the course information:

        The user with id 'XX' viewed the profile for the user with id 'XX'.
        

      5. Run the unit test and make sure it pass.

        vendor/bin/phpunit lib/tests/events_test.php
        

      Show
      Open a course►enrol a user and visit his profile. Open Site Administration►Reports►Logs and check the log entry has the course information: The user with id 'XX' viewed the profile for the user with id 'XX' in the course with id 'XX'. Open Site Administration►Accounts►Browse list of users and view a user profile. Open Site Administration►Reports►Logs and check the log entry doesn't have the course information: The user with id 'XX' viewed the profile for the user with id 'XX'. Run the unit test and make sure it pass. vendor/bin/phpunit lib/tests/events_test.php
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-45544-master

      Description

      Currently the user_profile_viewed event is only triggered on the user/view.php page, but it should also be triggered on the user/profile.php page as well.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jul/14