From 833ecab083728f7ceed779b9a2d5daa028688fcc Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 26 Jun 2014 17:12:31 +0000 Subject: Bug 669535 - User pref for "Possible Duplicates" - Discussed with glob and decided to straight backport to BMO --- Bugzilla/Install.pm | 2 ++ template/en/default/bug/create/create.html.tmpl | 3 ++- template/en/default/global/setting-descs.none.tmpl | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index 6019c9d18..d5f4f04cd 100644 --- a/Bugzilla/Install.pm +++ b/Bugzilla/Install.pm @@ -95,6 +95,8 @@ sub SETTINGS { default => 'html' }, # 2011-06-16 glob@mozilla.com -- Bug 663747 bugmail_new_prefix => { options => ['on', 'off'], default => 'on' }, + # 2013-07-26 joshi_sunil@in.com -- Bug 669535 + possible_duplicates => { options => ['on', 'off'], default => 'on' }, # 2011-10-11 glob@mozilla.com -- Bug 301656 requestee_cc => { options => ['on', 'off'], default => 'on' }, } diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 2e3ba66c6..14f40fe55 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -473,7 +473,8 @@ TUI_hide_default('attachment_text_field'); - [% IF feature_enabled('jsonrpc') AND !cloned_bug_id %] + [% IF feature_enabled('jsonrpc') AND !cloned_bug_id + AND user.settings.possible_duplicates.value == 'on' %] Possible
Duplicates: diff --git a/template/en/default/global/setting-descs.none.tmpl b/template/en/default/global/setting-descs.none.tmpl index 37d81039e..5ba100183 100644 --- a/template/en/default/global/setting-descs.none.tmpl +++ b/template/en/default/global/setting-descs.none.tmpl @@ -53,8 +53,9 @@ "html" => "HTML", "text_only" => "Text Only", "bugmail_new_prefix" => "Add 'New:' to subject line of email sent when a new $terms.bug is filed", + "possible_duplicates" => "Display possible duplicates when reporting a new $terms.bug", "requestee_cc" => "Automatically add me to the CC list of $terms.bugs I am requested to review", - } + } %] [% Hook.process('settings') %] -- cgit v1.2.3-24-g4f1b