summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-18 22:48:21 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-18 22:48:21 +0200
commitdb2a5492739a143ff828bbf25b1c97ab1524a9b9 (patch)
tree5047b59069a9f21f4a45ce770d991fc53fcba245 /Bugzilla/Bug.pm
parent7ae63b1e06f607ede3ed32829ac9316e4c657247 (diff)
downloadbugzilla-db2a5492739a143ff828bbf25b1c97ab1524a9b9.tar.gz
bugzilla-db2a5492739a143ff828bbf25b1c97ab1524a9b9.tar.xz
Bug 556422: Move the existing bug-moving functionality into an extension
called OldBugMove. r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm12
1 files changed, 1 insertions, 11 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 3fb1dcf98..6df7363d5 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -2410,10 +2410,6 @@ sub set_resolution {
my $new_res = $self->resolution;
if ($new_res ne $old_res) {
- # MOVED has a special meaning and can only be used when
- # really moving bugs to another installation.
- ThrowCodeError('no_manual_moved') if ($new_res eq 'MOVED' && !$params->{moving});
-
# Clear the dup_id if we're leaving the dup resolution.
if ($old_res eq 'DUPLICATE') {
$self->_clear_dup_id();
@@ -3278,7 +3274,6 @@ sub user {
return {} if $self->{'error'};
my $user = Bugzilla->user;
- my $canmove = Bugzilla->params->{'move-enabled'} && $user->is_mover;
my $prod_id = $self->{'product_id'};
@@ -3293,8 +3288,7 @@ sub user {
my $isreporter = $user->id
&& $user->id == $self->{reporter_id};
- $self->{'user'} = {canmove => $canmove,
- canconfirm => $canconfirm,
+ $self->{'user'} = {canconfirm => $canconfirm,
canedit => $canedit,
isreporter => $isreporter};
return $self->{'user'};
@@ -3326,10 +3320,6 @@ sub choices {
my $resolution_field = new Bugzilla::Field({ name => 'resolution' });
# Don't include the empty resolution in drop-downs.
my @resolutions = grep($_->name, @{ $resolution_field->legal_values });
- # And don't include MOVED in the list unless the bug is already MOVED.
- if ($self->resolution ne 'MOVED') {
- @resolutions= grep { $_->name ne 'MOVED' } @resolutions;
- }
$choices{'resolution'} = \@resolutions;
$self->{'choices'} = \%choices;