]> 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:44:19 +0000 (15:44 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 13 May 2010 13:44:19 +0000 (15:44 +0200)
r/a=mkanat

Bugzilla/Bug.pm

index 1b7753eff716eab116fb1c3b2152dceed2cf2144..9a915b6f8c80a6f123dea2021a93b0cedeb17c73 100644 (file)
@@ -1531,7 +1531,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) {