aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2004-03-18 13:55:41 +0000
committerjustdave%syndicomm.com <>2004-03-18 13:55:41 +0000
commit39a329b9ac46424a4552e8c68e44467173a8238c (patch)
tree57da556be3e1e1e7106e314738b4a9cf1e378703 /process_bug.cgi
parent3d59b2bd807ec35c511fd76df11b2cbb61289242 (diff)
downloadbugs-39a329b9ac46424a4552e8c68e44467173a8238c.tar
bugs-39a329b9ac46424a4552e8c68e44467173a8238c.tar.gz
bugs-39a329b9ac46424a4552e8c68e44467173a8238c.tar.bz2
bugs-39a329b9ac46424a4552e8c68e44467173a8238c.tar.xz
bugs-39a329b9ac46424a4552e8c68e44467173a8238c.zip
Bug 24496: Adds a parameter "noresolveonopenblockers" which when enabled, prevents bugs from being closed if there are any bugs blocking it which are still open.
Patch by Andreas Höfler <andreas.hoefler@bearingpoint.com> r= justdave, a= myk
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi11
1 files changed, 11 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 774883a9c..4df90efd2 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -890,6 +890,17 @@ SWITCH: for ($::FORM{'knob'}) {
ThrowUserError("resolving_remaining_time");
}
}
+
+ # don't resolve as fixed while still unresolved blocking bugs
+ if (Param("noresolveonopenblockers") && ($::FORM{'resolution'} eq 'FIXED')) {
+ my @dependencies = CountOpenDependencies(@idlist);
+ if (scalar @dependencies > 0) {
+ ThrowUserError("still_unresolved_bugs",
+ { dependencies => \@dependencies,
+ dependency_count => scalar @dependencies });
+ }
+ }
+
# Check here, because its the only place we require the resolution
CheckFormField(\%::FORM, 'resolution', \@::settable_resolution);
ChangeStatus('RESOLVED');