catalyst / moodle-tool_webanalytics

A Moodle admin tool adding Web Analytics to your Moodle site.
https://moodle.org/plugins/tool_webanalytics
7 stars 11 forks source link

Unable to enable/disable tools from "Manage Analytics Tools" list #50

Closed cameron1729 closed 1 year ago

cameron1729 commented 1 year ago

To reproduce:

  1. Browse to "Site administration" > "Plugins" > "Admin tools" > "Web analytics"
  2. Select "Google Universal Analytics" from the "Add new Analytics Tool" drop down
  3. Fill out the required fields (just put whatever you want in there, it doesn't matter)
  4. Press the "Save changes" button
  5. Click the eye icon for the tool you just added
  6. You will get an error: "Analytics Tool not found"

This is because status.php has the following: $id = required_param('id', PARAM_INT); but the IDs for tools are strings like 642d1e490c961