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

Log display default action breaks URLs for plugins

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.7
    • Fix Version/s: BACKEND
    • Component/s: Course
    • Labels:
      None

      Description

      When the logs are displayed the URL is constructed using the make_log_url() function in course/lib.php. Unfortunately the module names are hard-coded in this function. This makes it impossible to add functionality for a plugin. The default activity for an unknown module name is to modify the URL with /mod/$module on the front which is only what you want in limited circumstances. The workaround is to pick a module type that does not munge the URL which means the log report is going to be less useful than it might have been.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: