]> 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:40:17 +0000 (19:40 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 3 Oct 2012 17:40:17 +0000 (19:40 +0200)
r=glob a=LpSolit

extensions/OldBugMove/Extension.pm

index b12d36a9aad25e4827b8159374ecd8b69d5d8ab4..d1b9537483d2ba1b36ceb53bf5c7bdcde4ae7bb7 100644 (file)
@@ -132,7 +132,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');