From 8753f2866ea20db090b4b58bb7b06750e0362968 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Wed, 3 Oct 2012 17:46:25 +0000 Subject: [PATCH] Bug 757935: Bugs with resolution MOVED cannot be edited r=glob a=LpSolit git-svn-id: svn://10.0.0.236/trunk@264289 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/extensions/OldBugMove/Extension.pm | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 1939f20859d..af257e7ec7a 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8404 \ No newline at end of file +8405 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/extensions/OldBugMove/Extension.pm b/mozilla/webtools/bugzilla/extensions/OldBugMove/Extension.pm index c1fa50a654a..9a499d5d048 100644 --- a/mozilla/webtools/bugzilla/extensions/OldBugMove/Extension.pm +++ b/mozilla/webtools/bugzilla/extensions/OldBugMove/Extension.pm @@ -118,7 +118,9 @@ sub _check_bug_resolution { my $original_validator = shift; my ($invocant, $resolution) = @_; - if ($resolution eq 'MOVED' and !Bugzilla->input_params->{'oldbugmove'}) { + if ($resolution eq 'MOVED' && $invocant->resolution ne 'MOVED' + && !Bugzilla->input_params->{'oldbugmove'}) + { # MOVED has a special meaning and can only be used when # really moving bugs to another installation. ThrowUserError('oldbugmove_no_manual_move');