]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 565314: Cannot edit FIXED bugs when a blocker is open, when "noresolveonopenblock...
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 13 May 2010 13:46:34 +0000 (15:46 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 13 May 2010 13:46:34 +0000 (15:46 +0200)
r/a=mkanat

Bugzilla/Bug.pm

index 6114b0ae4499779bb84cf9e69a56570b8fc6c2ef..e0acf4c524c96a9941eb374923f8f50c6b552968 100644 (file)
@@ -1549,7 +1549,9 @@ sub _check_resolution {
     ThrowUserError('resolution_not_allowed') if $self->status->is_open;
     
     # Check noresolveonopenblockers.
-    if (Bugzilla->params->{"noresolveonopenblockers"} && $resolution eq 'FIXED')
+    if (Bugzilla->params->{"noresolveonopenblockers"}
+        && $resolution eq 'FIXED'
+        && (!$self->resolution || $resolution ne $self->resolution))
     {
         my @dependencies = CountOpenDependencies($self->id);
         if (@dependencies) {