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

Replace add_to_log with an event trigger - mod_resource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7
    • 2.6
    • Resource
    • MOODLE_26_STABLE
    • MOODLE_27_STABLE
    • wip-mdl-40917
    • Hide

      Test 1:

      1. Run phpunit mod/resource/tests/events_test.php

      Test 2:

      1. Create a course.
      2. Create a file resource.
      3. Click on the file resource.
      4. Change the view.php to index.php and the id to the id of the course.
      5. Click on Course administration -> Reports -> live logs
      6. Ensure there are two events; "resource view all" and "resource view"
      Show
      Test 1: Run phpunit mod/resource/tests/events_test.php Test 2: Create a course. Create a file resource. Click on the file resource. Change the view.php to index.php and the id to the id of the course. Click on Course administration -> Reports -> live logs Ensure there are two events; "resource view all" and "resource view"
    • 8
    • BACKEND Sprint 9

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

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

            rajeshtaneja Rajesh Taneja
            abgreeve Adrian Greeve
            Mark Nelson Mark Nelson
            Damyon Wiese Damyon Wiese
            Michael de Raadt Michael de Raadt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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