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

Replace add_to_log with an event trigger - mod_url

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.7
    • Component/s: Logging
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course.
      2. Create a URL resource.
      3. Click on this URL resource.
      4. Change the view.php to index.php and the id to the id of the course
      5. Visit <yoursite>/report/log/index.php?id=1 and click 'Get these logs'.
      6. Ensure there are two events; viewing all URL instances and viewing an individual URL instance.
      Show
      Create a course. Create a URL resource. Click on this URL resource. Change the view.php to index.php and the id to the id of the course Visit <yoursite>/report/log/index.php?id=1 and click 'Get these logs'. Ensure there are two events; viewing all URL instances and viewing an individual URL instance.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull Master Branch:
      MDL-40920_master
    • Story Points:
      8
    • Sprint:
      BACKEND Sprint 8

      Description

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

      mod_url
      /mod/url/index.php:36: add_to_log($course->id, 'url', 'view all', "index.php?id=$course->id", '');
      /mod/url/view.php:50: add_to_log($course->id, 'url', 'view', 'view.php?id='.$cm->id, $url->id, $cm->id);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              abgreeve Adrian Greeve
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Michael de Raadt
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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