summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-07 07:10:42 +0200
committerByron Jones <glob@mozilla.com>2015-04-07 07:10:42 +0200
commit50a1473b3c89bf8fe153cfd9c4c29a0de104d36d (patch)
treeb77aff32d1318ee994a58c9f7d1811d55ddcc187 /extensions/BugModal/web
parent3c87e9f850f0b02e768fd1b045299e95bf10959b (diff)
downloadbugzilla-50a1473b3c89bf8fe153cfd9c4c29a0de104d36d.tar.gz
bugzilla-50a1473b3c89bf8fe153cfd9c4c29a0de104d36d.tar.xz
Bug 1149879: bug-modal's editmode is broken for users without editbugs (Form field dup_id was not defined)
Diffstat (limited to 'extensions/BugModal/web')
-rw-r--r--extensions/BugModal/web/bug_modal.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index ec53c32c2..46050a72a 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -413,7 +413,8 @@ $(function() {
.change();
$('#resolution')
.change(function(event) {
- if (event.target.value == "DUPLICATE") {
+ var bug_status = $('#bug_status').val();
+ if ((bug_status == "RESOLVED" || bug_status == "VERIFIED") && event.target.value == "DUPLICATE") {
$('#duplicate-container').show();
$('#mark-as-dup-btn').hide();
$('#dup_id').focus();