summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-01-23 07:25:19 +0100
committerByron Jones <glob@mozilla.com>2015-01-23 07:25:19 +0100
commitc00b9c39f36784b86287f8f8d142a7b33200e2a5 (patch)
tree35902cb4f442b104ecfc5afb6b7da0f422791389 /extensions
parentd7a8c55615daffeea41e81ffb04201f944e6b408 (diff)
downloadbugzilla-c00b9c39f36784b86287f8f8d142a7b33200e2a5.tar.gz
bugzilla-c00b9c39f36784b86287f8f8d142a7b33200e2a5.tar.xz
Bug 1117345: Can't choose a resolution when trying to resolve a bug (with canconfirm rights)
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/Extension.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 458be737f..75ca30d8d 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -512,13 +512,17 @@ sub bug_check_can_change_field {
{
push (@$priv_results, PRIVILEGES_REQUIRED_NONE);
}
- elsif ($field eq 'resolution' &&
+ elsif ($field eq 'resolution' &&
($new_value eq 'DUPLICATE' ||
$new_value eq 'WORKSFORME' ||
- $new_value eq 'INCOMPLETE'))
+ $new_value eq 'INCOMPLETE' ||
+ ($old_value eq '' && $new_value eq '1')))
{
push (@$priv_results, PRIVILEGES_REQUIRED_NONE);
}
+ elsif ($field eq 'dup_id') {
+ push (@$priv_results, PRIVILEGES_REQUIRED_NONE);
+ }
} elsif ($field eq 'bug_status') {
# Disallow reopening of bugs which have been resolved for > 1 year