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

Replace add_to_log with an event trigger - mod_folder

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_27_STABLE
    • MDL-40922_master
    • Hide
      1. Create a course.
      2. Create a folder resource.
      3. Click on this folder resource.
      4. Change the view.php to index.php and the id to the id of the course.
      5. Edit the folder.
      6. Visit <yoursite>/report/log/index.php?id=1 and click 'Get these logs'.
      7. Ensure there are three events; viewing all folder instances, viewing an individual folder and editing a folder.
      8. Run "vendor/bin/phpunit mod/folder/tests/events_test.php" and check there are no issues.
      Show
      Create a course. Create a folder resource. Click on this folder resource. Change the view.php to index.php and the id to the id of the course. Edit the folder. Visit <yoursite>/report/log/index.php?id=1 and click 'Get these logs'. Ensure there are three events; viewing all folder instances, viewing an individual folder and editing a folder. Run "vendor/bin/phpunit mod/folder/tests/events_test.php" and check there are no issues.
    • 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_folder
      /mod/folder/index.php:36: add_to_log($course->id, 'folder', 'view all', "index.php?id=$course->id", '');
      /mod/folder/edit.php:66: add_to_log($course->id, 'folder', 'edit', 'edit.php?id='.$cm->id, $folder->id, $cm->id);
      /mod/folder/view.php:53: add_to_log($course->id, 'folder', 'view', 'view.php?id='.$cm->id, $folder->id, $cm->id);

            markn Mark Nelson
            abgreeve Adrian Greeve
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            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.