diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-14 21:03:00 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-14 21:03:00 +0200 |
commit | 90d86a9744883ccc120a0a955ffade72990e1505 (patch) | |
tree | 07fd038fc41a2de0259f2f7c6a9de0d55e8a1e34 /chart.cgi | |
parent | ae22da8710d00232d28b7c6b9093d2b7e33b0627 (diff) | |
download | bugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.gz bugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.xz |
Bug 1088022 - Bump min version to CGI 4.09
r=dkl
Diffstat (limited to 'chart.cgi')
-rwxr-xr-x | chart.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -58,7 +58,7 @@ if (!Bugzilla->feature('new_charts')) { } # Go back to query.cgi if we are adding a boolean chart parameter. -if (grep(/^cmd-/, $cgi->param())) { +if (grep(/^cmd-/, $cgi->multi_param())) { my $params = $cgi->canonicalise_query("format", "ctype", "action"); print $cgi->redirect("query.cgi?format=" . $cgi->param('query_format') . ($params ? "&$params" : "")); @@ -73,7 +73,7 @@ $vars->{'doc_section'} = 'using/reports-and-charts.html#charts'; # of the action param, because that value is localization-dependent. So, we # encode it in the name, as "action-<action>". Some params even contain the # series_id they apply to (e.g. subscribe, unsubscribe). -my @actions = grep(/^action-/, $cgi->param()); +my @actions = grep(/^action-/, $cgi->multi_param()); if ($actions[0] && $actions[0] =~ /^action-([^\d]+)(\d*)$/) { $action = $1; $series_id = $2 if $2; @@ -224,14 +224,14 @@ exit; # Find any selected series and return either the first or all of them. sub getAndValidateSeriesIDs { - my @series_ids = grep(/^\d+$/, $cgi->param("name")); + my @series_ids = grep(/^\d+$/, $cgi->multi_param("name")); return wantarray ? @series_ids : $series_ids[0]; } # Return a list of IDs of all the lines selected in the UI. sub getSelectedLines { - my @ids = map { /^select(\d+)$/a ? $1 : () } $cgi->param(); + my @ids = map { /^select(\d+)$/a ? $1 : () } $cgi->multi_param(); return @ids; } |