Commit 0a57310c authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 159593 - usedependencies parameter must die. Patch by gerv; r=bbaetz.

parent 58ec231b
...@@ -217,16 +217,14 @@ sub initBug { ...@@ -217,16 +217,14 @@ sub initBug {
if (@longdescs) { if (@longdescs) {
$self->{'longdescs'} = \@longdescs; $self->{'longdescs'} = \@longdescs;
} }
if (&::Param("usedependencies")) { my @depends = EmitDependList("blocked", "dependson", $bug_id);
my @depends = EmitDependList("blocked", "dependson", $bug_id); if (@depends) {
if ( @depends ) {
$self->{'dependson'} = \@depends; $self->{'dependson'} = \@depends;
} }
my @blocks = EmitDependList("dependson", "blocked", $bug_id); my @blocks = EmitDependList("dependson", "blocked", $bug_id);
if ( @blocks ) { if (@blocks) {
$self->{'blocks'} = \@blocks; $self->{'blocks'} = \@blocks;
}
} }
return $self; return $self;
......
...@@ -217,16 +217,14 @@ sub initBug { ...@@ -217,16 +217,14 @@ sub initBug {
if (@longdescs) { if (@longdescs) {
$self->{'longdescs'} = \@longdescs; $self->{'longdescs'} = \@longdescs;
} }
if (&::Param("usedependencies")) { my @depends = EmitDependList("blocked", "dependson", $bug_id);
my @depends = EmitDependList("blocked", "dependson", $bug_id); if (@depends) {
if ( @depends ) {
$self->{'dependson'} = \@depends; $self->{'dependson'} = \@depends;
} }
my @blocks = EmitDependList("dependson", "blocked", $bug_id); my @blocks = EmitDependList("dependson", "blocked", $bug_id);
if ( @blocks ) { if (@blocks) {
$self->{'blocks'} = \@blocks; $self->{'blocks'} = \@blocks;
}
} }
return $self; return $self;
......
...@@ -395,11 +395,6 @@ DefParam("usebrowserinfo", ...@@ -395,11 +395,6 @@ DefParam("usebrowserinfo",
"b", "b",
1); 1);
DefParam("usedependencies",
"Do you wish to use dependencies (allowing you to mark which bugs depend on which other ones)?",
"b",
1);
DefParam("usevotes", DefParam("usevotes",
"Do you wish to allow users to vote for bugs? Note that in order for this to be effective, you will have to change the maximum votes allowed in a product to be non-zero in <a href=\"editproducts.cgi\">the product edit page</a>.", "Do you wish to allow users to vote for bugs? Note that in order for this to be effective, you will have to change the maximum votes allowed in a product to be non-zero in <a href=\"editproducts.cgi\">the product edit page</a>.",
"b", "b",
......
...@@ -265,7 +265,6 @@ ...@@ -265,7 +265,6 @@
[%# *** Dependencies Votes *** %] [%# *** Dependencies Votes *** %]
[% IF Param('usedependencies') %]
<table> <table>
<tr> <tr>
[% PROCESS dependencies accesskey = "d" [% PROCESS dependencies accesskey = "d"
...@@ -287,7 +286,6 @@ ...@@ -287,7 +286,6 @@
dep = { title => "<u>b</u>locks", fieldname => "blocked" } %] dep = { title => "<u>b</u>locks", fieldname => "blocked" } %]
</tr> </tr>
</table> </table>
[% END %]
[% IF use_votes %] [% IF use_votes %]
<table> <table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment