From 0a57310cc06b21beebf1f9a149b367432d051a17 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Mon, 29 Jul 2002 06:15:48 +0000 Subject: Bug 159593 - usedependencies parameter must die. Patch by gerv; r=bbaetz. --- Bug.pm | 16 +++++++--------- Bugzilla/Bug.pm | 16 +++++++--------- defparams.pl | 5 ----- template/en/default/bug/edit.html.tmpl | 2 -- 4 files changed, 14 insertions(+), 25 deletions(-) diff --git a/Bug.pm b/Bug.pm index 7e7478c46..df7a91553 100755 --- a/Bug.pm +++ b/Bug.pm @@ -217,16 +217,14 @@ sub initBug { if (@longdescs) { $self->{'longdescs'} = \@longdescs; } - - if (&::Param("usedependencies")) { - my @depends = EmitDependList("blocked", "dependson", $bug_id); - if ( @depends ) { + + my @depends = EmitDependList("blocked", "dependson", $bug_id); + if (@depends) { $self->{'dependson'} = \@depends; - } - my @blocks = EmitDependList("dependson", "blocked", $bug_id); - if ( @blocks ) { - $self->{'blocks'} = \@blocks; - } + } + my @blocks = EmitDependList("dependson", "blocked", $bug_id); + if (@blocks) { + $self->{'blocks'} = \@blocks; } return $self; diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 7e7478c46..df7a91553 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -217,16 +217,14 @@ sub initBug { if (@longdescs) { $self->{'longdescs'} = \@longdescs; } - - if (&::Param("usedependencies")) { - my @depends = EmitDependList("blocked", "dependson", $bug_id); - if ( @depends ) { + + my @depends = EmitDependList("blocked", "dependson", $bug_id); + if (@depends) { $self->{'dependson'} = \@depends; - } - my @blocks = EmitDependList("dependson", "blocked", $bug_id); - if ( @blocks ) { - $self->{'blocks'} = \@blocks; - } + } + my @blocks = EmitDependList("dependson", "blocked", $bug_id); + if (@blocks) { + $self->{'blocks'} = \@blocks; } return $self; diff --git a/defparams.pl b/defparams.pl index 4530a73c2..c0e1a9fa9 100644 --- a/defparams.pl +++ b/defparams.pl @@ -395,11 +395,6 @@ DefParam("usebrowserinfo", "b", 1); -DefParam("usedependencies", - "Do you wish to use dependencies (allowing you to mark which bugs depend on which other ones)?", - "b", - 1); - 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 the product edit page.", "b", diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index a37be643b..699ee55ac 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -265,7 +265,6 @@ [%# *** Dependencies Votes *** %] - [% IF Param('usedependencies') %] [% PROCESS dependencies accesskey = "d" @@ -287,7 +286,6 @@ dep = { title => "blocks", fieldname => "blocked" } %]
- [% END %] [% IF use_votes %] -- cgit v1.2.3-24-g4f1b