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

Replace add_to_log with an event trigger - course reports

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • 2.6
    • 2.5
    • Events API, Logging
    • MOODLE_25_STABLE
    • MOODLE_26_STABLE
    • MDL-40052-master
    • Hide
      1. You must have stats enabled and some data to test this issue.
      2. Visit the pages mentioned in description
      3. For each of them make sure a log entry is created.
      4. Make sure the event entry has all details as before the patch and links to the correct page as before.
      Show
      You must have stats enabled and some data to test this issue. Visit the pages mentioned in description For each of them make sure a log entry is created. Make sure the event entry has all details as before the patch and links to the correct page as before.
    • 20
    • BACKEND Sprint 4

      Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class.

      course / reports
      /report/participation/index.php:66: add_to_log($course->id, "course", "report participation", "report/participation/index.php?id=$course->id", $course->id);
      /report/log/index.php:118: add_to_log($course->id, "course", "report log", "report/log/index.php?id=$course->id", $course->id);
      /report/log/graph.php:70: add_to_log($course->id, 'course', 'report log', "report/log/graph.php?user=$user->id&id=$course->id&type=$type&date=$date", $course->id);
      /report/log/user.php:65: add_to_log($course->id, 'course', 'report log', "report/log/user.php?id=$user->id&course=$course->id&mode=$mode", $course->id);
      /report/loglive/index.php:51: add_to_log($course->id, 'course', 'report live', "report/loglive/index.php?id=$course->id", $course->id);
      /report/stats/index.php:70: add_to_log($course->id, "course", "report stats", "report/stats/index.php?course=$course->id", $course->id);
      /report/stats/graph.php:65: add_to_log($course->id, 'course', 'report stats', "report/stats/graph.php?userid=$userid&id=$course->id&mode=$mode&roleid=$roleid", $course->id);
      /report/stats/user.php:52: add_to_log($course->id, 'course', 'report stats', "report/stats/user.php?id=$user->id&course=$course->id", $course->id);
      /report/outline/index.php:40: add_to_log($course->id, 'course', 'report outline', "report/outline/index.php?id=$course->id", $course->id);
      /report/outline/user.php:56: add_to_log($course->id, 'course', 'report outline', "report/outline/user.php?id=$user->id&course=$course->id&mode=$mode", $course->id);

            ankit_frenz Ankit Agarwal
            abgreeve Adrian Greeve
            Rajesh Taneja Rajesh Taneja
            Damyon Wiese Damyon Wiese
            Marina Glancy Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.