Moodle
  1. Moodle
  2. MDL-21225

Log display default action breaks URLs for plugins

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.9.7
    • Fix Version/s: BACKEND
    • Component/s: Course
    • Labels:
      None
    • Rank:
      18216

      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.

        Activity

        Hide
        Michael de Raadt added a comment -

        This is likely to be resolved by the current events and logging re-write, but we shouldn't count our chickens before they hatch.

        Show
        Michael de Raadt added a comment - This is likely to be resolved by the current events and logging re-write, but we shouldn't count our chickens before they hatch.

          People

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

            Dates

            • Created:
              Updated: