]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 431730: Bugs with resolution MOVED cannot be edited anymore - Patch by FrédÃ...
authorlpsolit%gmail.com <>
Fri, 2 May 2008 12:36:27 +0000 (12:36 +0000)
committerlpsolit%gmail.com <>
Fri, 2 May 2008 12:36:27 +0000 (12:36 +0000)
Bugzilla/Bug.pm

index 0087b3b85686caee6c8b04ee5d59368e5565a7f1..736afbcda9b6a12628b4c2bae56858c422d18444 100755 (executable)
@@ -1853,11 +1853,11 @@ sub set_resolution {
     $self->set('resolution', $value);
     my $new_res = $self->resolution;
 
-    # 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});
-
     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();