Skip to content

Commit

Permalink
Update #1 issue with filtering results when downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
luukverhoeven committed May 7, 2024
1 parent f37c25b commit 9928608
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions report.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@ public function print_export_options(bool $return = false) {
foreach ($val as $k => $v) {
$k = s(clean_param($k, PARAM_CLEANHTML));
$v = s(clean_param($v, PARAM_CLEANHTML));
$wwwpath .= "&{$key}[$k]=" . $v;
$wwwpath .= "&{$key}[$k]=" . $v;
}
} else {
$val = clean_param($val, PARAM_CLEANHTML);
$wwwpath .= "&$key=" . s($val);
$wwwpath .= "&$key=" . s($val);
}
}
}
Expand All @@ -369,7 +369,7 @@ public function print_export_options(bool $return = false) {
}

// TODO Use moodle_url.
$output .= '<a href="' . s($wwwpath) . '&amp;download=1&amp;format=' . s($e) . '">
$output .= '<a href="' . s($wwwpath) . '&download=1&format=' . s($e) . '">
<img src="' . $CFG->wwwroot . '/blocks/configurable_reports/export/' . s($e) . '/pix.gif"
alt="' . s($e) . '">
&nbsp;' . (s(strtoupper($e))) .
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2023121803;
$plugin->version = 2024050700;
$plugin->requires = 2017111300;
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '4.1.0';
Expand Down

0 comments on commit 9928608

Please sign in to comment.