Bug 191020 - back out bits of generic charting checked in by mistake. Apologies.

This commit is contained in:
gerv%gerv.net 2003-02-07 08:26:49 +00:00
parent c90f937bc3
commit 76ff689b66

View File

@ -172,18 +172,6 @@ sub LookupNamedQuery {
return $result; return $result;
} }
sub LookupSeries {
my ($series_id) = @_;
detaint_natural($series_id) || ThrowCodeError("invalid_series_id");
my $dbh = Bugzilla->instance->dbh;
my $result = $dbh->selectrow_array("SELECT query FROM series " .
"WHERE series_id = $series_id");
$result
|| ThrowCodeError("invalid_series_id", {'series_id' => $series_id});
return $result;
}
sub GetQuip { sub GetQuip {
my $quip; my $quip;
@ -267,12 +255,6 @@ if ($::FORM{'cmdtype'} eq "dorem") {
$params = new Bugzilla::CGI($::buffer); $params = new Bugzilla::CGI($::buffer);
$order = $params->param('order') || $order; $order = $params->param('order') || $order;
} }
elsif ($::FORM{'remaction'} eq "runseries") {
$::buffer = LookupSeries($::FORM{"series_id"});
$vars->{'title'} = "Bug List: $::FORM{'namedcmd'}";
$params = new Bugzilla::CGI($::buffer);
$order = $params->param('order') || $order;
}
elsif ($::FORM{'remaction'} eq "load") { elsif ($::FORM{'remaction'} eq "load") {
my $url = "query.cgi?" . LookupNamedQuery($::FORM{"namedcmd"}); my $url = "query.cgi?" . LookupNamedQuery($::FORM{"namedcmd"});
print "Refresh: 0; URL=$url\n"; print "Refresh: 0; URL=$url\n";