]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 669535 - User pref for "Possible Duplicates"
authorSunil Joshi <joshi_sunil@in.com>
Thu, 8 Aug 2013 17:10:19 +0000 (13:10 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Thu, 8 Aug 2013 17:10:19 +0000 (13:10 -0400)
r=dkl,a=glob

Bugzilla/Install.pm
template/en/default/bug/create/create.html.tmpl
template/en/default/global/setting-descs.none.tmpl

index 258adf8114d048b8798cf2e152279ba366ae8657..41f88d70b326b2ff6a199c5a597ea7fa39634ca7 100644 (file)
@@ -87,6 +87,8 @@ sub SETTINGS {
     requestee_cc       => { options => ['on', 'off'], default => 'on' },
     # 2012-04-30 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' },
     }
 };
 
index 9c7775f078466e49ea3e58a0ab8799cf071706e3..66c5dfff96c4bfb3735d06972d1aa984b1cba93e 100644 (file)
@@ -491,7 +491,8 @@ TUI_hide_default('attachment_text_field');
     </td>
   </tr>
 
-  [% IF feature_enabled('jsonrpc') AND !cloned_bug_id %]
+  [% IF feature_enabled('jsonrpc') AND !cloned_bug_id
+        AND user.settings.possible_duplicates.value == 'on' %]
     <tr id="possible_duplicates_container" class="bz_default_hidden">
       <th>Possible<br>Duplicates:</th>
       <td colspan="3">
index d20068306a5a33fae0f71ffc6dd8c85aca943b07..6e3358782786754f32604b5292057f2da76d87e9 100644 (file)
@@ -43,6 +43,7 @@
    "text_only"                        => "Text Only",
    "requestee_cc"                     => "Automatically add me to the CC list of $terms.bugs I am requested to review",
    "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", 
                    } 
 %]