diff options
author | justdave%syndicomm.com <> | 2004-03-18 14:55:41 +0100 |
---|---|---|
committer | justdave%syndicomm.com <> | 2004-03-18 14:55:41 +0100 |
commit | 39a329b9ac46424a4552e8c68e44467173a8238c (patch) | |
tree | 57da556be3e1e1e7106e314738b4a9cf1e378703 /process_bug.cgi | |
parent | 3d59b2bd807ec35c511fd76df11b2cbb61289242 (diff) | |
download | bugzilla-39a329b9ac46424a4552e8c68e44467173a8238c.tar.gz bugzilla-39a329b9ac46424a4552e8c68e44467173a8238c.tar.xz |
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-x | process_bug.cgi | 11 |
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'); |