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

Replace add_to_log with an event trigger - mod_url

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7
    • 2.6
    • Logging
    • MOODLE_26_STABLE
    • MOODLE_27_STABLE
    • MDL-40920_master
    • 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.
    • 8
    • BACKEND Sprint 8

      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);

            markn Mark Nelson
            abgreeve Adrian Greeve
            Ankit Agarwal Ankit Agarwal
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Michael de Raadt Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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