summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-12-01 08:30:40 +0100
committerByron Jones <glob@mozilla.com>2015-12-01 08:30:40 +0100
commit944f4c76700090704b1d4100fac2db4d647ede67 (patch)
tree83095fce9233b39f230c9c2d22e265940a879896 /buglist.cgi
parent7bf9ad78543d0f95c655afab376de6fc4687f3d2 (diff)
downloadbugzilla-944f4c76700090704b1d4100fac2db4d647ede67.tar.gz
bugzilla-944f4c76700090704b1d4100fac2db4d647ede67.tar.xz
Bug 1229198 - When saving a buglist from a saved search as a CSV file, set the filename to <saved-query-name>.csv
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 18a9a7fc2..48c3ac57a 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -344,7 +344,7 @@ $params ||= new Bugzilla::CGI($cgi);
# at the end, because the fact that there is a remembered query gets
# forgotten in the process of retrieving it.
my $disp_prefix = "bugs";
-if ($cmdtype eq "dorem" && $remaction =~ /^run/) {
+if (($cmdtype eq "dorem" && $remaction =~ /^run/) || ($format->{extension} ne 'html' && defined $cgi->param('namedcmd'))) {
$disp_prefix = $cgi->param('namedcmd');
}
@@ -1087,7 +1087,7 @@ if ($format->{'extension'} eq "csv") {
$vars->{'human'} = $cgi->param('human');
}
-$cgi->close_standby_message($contenttype, $disposition);
+$cgi->close_standby_message($contenttype, $disposition, $disp_prefix, $format->{'extension'});
################################################################################
# Content Generation