]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 757935: Bugs with resolution MOVED cannot be edited
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 3 Oct 2012 17:36:06 +0000 (19:36 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 3 Oct 2012 17:36:06 +0000 (19:36 +0200)
r=glob a=LpSolit

extensions/OldBugMove/Extension.pm

index c1fa50a654a6a61a9851cfdd8c4aace35d4449ec..9a499d5d048ab07959af237deb43b554b73fa6ad 100644 (file)
@@ -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');