Skip to content

Commit

Permalink
Issue #172: Update metric name param type to fix enable/disable funct…
Browse files Browse the repository at this point in the history
…ionality for custom metrics.
  • Loading branch information
josepico01 authored and brendanheywood committed Jun 17, 2024
1 parent 887aa60 commit e7bf0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
require_once($CFG->libdir.'/adminlib.php');

$action = required_param('action', PARAM_ALPHANUMEXT);
$name = required_param('name', PARAM_PLUGIN);
$name = required_param('name', PARAM_ALPHANUMEXT);
$returnurl = optional_param('returnurl', get_local_referer(false), PARAM_LOCALURL);

$syscontext = context_system::instance();
Expand Down

0 comments on commit e7bf0c2

Please sign in to comment.