diff options
author | myk%mozilla.org <> | 2002-04-13 04:01:53 +0000 |
---|---|---|
committer | myk%mozilla.org <> | 2002-04-13 04:01:53 +0000 |
commit | 5c0c85df6d698ad183a88a8794ed0212de2895c1 (patch) | |
tree | 59f323dce2a9803285d9c6f5e68f79eae3b30f5c /globals.pl | |
parent | Bug 121162 - remove unused file booleanchart.html (diff) | |
download | bugzilla-5c0c85df6d698ad183a88a8794ed0212de2895c1.tar.gz bugzilla-5c0c85df6d698ad183a88a8794ed0212de2895c1.tar.bz2 bugzilla-5c0c85df6d698ad183a88a8794ed0212de2895c1.zip |
Fix for bug 125660: Templatizes process_bug.cgi.
Patch by Myk Melez <myk@mozilla.org>
r=gerv,bbaetz
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/globals.pl b/globals.pl index 249945ad9..560e0c4ae 100644 --- a/globals.pl +++ b/globals.pl @@ -373,61 +373,6 @@ sub lsearch { return -1; } -sub Product_element { - my ($prod,$onchange) = (@_); - return make_popup("product", keys %::versions, $prod, 1, $onchange); -} - -sub Component_element { - my ($comp,$prod,$onchange) = (@_); - my $componentlist; - if (! defined $::components{$prod}) { - $componentlist = []; - } else { - $componentlist = $::components{$prod}; - } - my $defcomponent; - if ($comp ne "" && lsearch($componentlist, $comp) >= 0) { - $defcomponent = $comp; - } else { - $defcomponent = $componentlist->[0]; - } - return make_popup("component", $componentlist, $defcomponent, 1, ""); -} - -sub Version_element { - my ($vers, $prod, $onchange) = (@_); - my $versionlist; - if (!defined $::versions{$prod}) { - $versionlist = []; - } else { - $versionlist = $::versions{$prod}; - } - my $defversion = $versionlist->[0]; - if (lsearch($versionlist,$vers) >= 0) { - $defversion = $vers; - } - return make_popup("version", $versionlist, $defversion, 1, $onchange); -} - -sub Milestone_element { - my ($tm, $prod, $onchange) = (@_); - my $tmlist; - if (!defined $::target_milestone{$prod}) { - $tmlist = []; - } else { - $tmlist = $::target_milestone{$prod}; - } - - my $deftm = $tmlist->[0]; - - if (lsearch($tmlist, $tm) >= 0) { - $deftm = $tm; - } - - return make_popup("target_milestone", $tmlist, $deftm, 1, $onchange); -} - # Generate a string which, when later interpreted by the Perl compiler, will # be the same as the given string. |