summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2015-03-30 19:53:57 +0200
committerGervase Markham <gerv@gerv.net>2015-03-30 19:53:57 +0200
commit79ec29975ac8d1a4f49b83ed404a1ee04c33b73c (patch)
treefd747279bdfb8f3857e7e64468c0915649319523 /Bugzilla/Bug.pm
parent2c82105b0fed5d6739111c5de8dba063b01ab446 (diff)
downloadbugzilla-79ec29975ac8d1a4f49b83ed404a1ee04c33b73c.tar.gz
bugzilla-79ec29975ac8d1a4f49b83ed404a1ee04c33b73c.tar.xz
Bug 1007605 - Make FIXED non-fixed, by changing noresolveonopenblockers to define what the fixed resolution is. r,a=glob
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 2bd6fb646..fc5dbc678 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1937,11 +1937,12 @@ sub _check_resolution {
# Don't allow open bugs to have resolutions.
ThrowUserError('resolution_not_allowed') if $is_open;
- # Check noresolveonopenblockers.
+ # Check if resolution_forbidden_with_open_blockers.
my $dependson = ref($invocant) ? $invocant->dependson
: ($params->{dependson} || []);
- if (Bugzilla->params->{"noresolveonopenblockers"}
- && $resolution eq 'FIXED'
+ if (Bugzilla->params->{"resolution_forbidden_with_open_blockers"}
+ && $resolution eq
+ Bugzilla->params->{"resolution_forbidden_with_open_blockers"}
&& (!ref $invocant or !$invocant->resolution
or $resolution ne $invocant->resolution)
&& scalar @$dependson)