From 6d02055deb5a8bbeff15459f150e129bbf725eab Mon Sep 17 00:00:00 2001 From: Matt Selsky Date: Mon, 26 Dec 2011 13:48:18 +0100 Subject: Bug 399080: Remove the 'usebugaliases' parameter (turned on permanently) r/a=LpSolit --- Bugzilla/Bug.pm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 5e54318fb..362fa90d7 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -337,12 +337,11 @@ sub new { # If we get something that looks like a word (not a number), # make it the "name" param. if (!defined $param || (!ref($param) && $param !~ /^\d+$/)) { - # But only if aliases are enabled. - if (Bugzilla->params->{'usebugaliases'} && $param) { + if ($param) { $param = { name => $param }; } else { - # Aliases are off, and we got something that's not a number. + # We got something that's not a number. my $error_self = {}; bless $error_self, $class; $error_self->{'bug_id'} = $param; @@ -611,8 +610,7 @@ sub possible_duplicates { # C - B The platform the bug was found against. # C - B The version of the product the bug was found in. # -# C - An alias for this bug. Will be ignored if C -# is off. +# C - An alias for this bug. # C - When this bug is expected to be fixed. # C - A string. # C - The initial status of the bug, a string. @@ -1202,7 +1200,7 @@ sub _send_bugmail { sub _check_alias { my ($invocant, $alias) = @_; $alias = trim($alias); - return undef if (!Bugzilla->params->{'usebugaliases'} || !$alias); + return undef if (!$alias); # Make sure the alias isn't too long. if (length($alias) > 20) { @@ -3696,7 +3694,6 @@ sub choices { # the ID of the bug if it exists or the undefined value if it doesn't. sub bug_alias_to_id { my ($alias) = @_; - return undef unless Bugzilla->params->{"usebugaliases"}; my $dbh = Bugzilla->dbh; trick_taint($alias); return $dbh->selectrow_array( -- cgit v1.2.3-24-g4f1b