summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorSunil Joshi [:SunilJoshi] <joshi_sunil@in.com>2014-03-21 15:25:43 +0100
committerDavid Lawrence <dkl@mozilla.com>2014-03-21 15:25:43 +0100
commitd6370f0638bfb1e237334e35e4e23524280cf6d2 (patch)
tree539eee2a8d067d83926e37864f517acc0aa36c81 /Bugzilla
parentace77744f0bc750b8976f1ad175b52ed715c8083 (diff)
downloadbugzilla-d6370f0638bfb1e237334e35e4e23524280cf6d2.tar.gz
bugzilla-d6370f0638bfb1e237334e35e4e23524280cf6d2.tar.xz
Bug 399087 - Remove the 'mostfreqthreshold' parameter
r=dkl,a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Config/Query.pm7
-rw-r--r--Bugzilla/Constants.pm6
2 files changed, 6 insertions, 7 deletions
diff --git a/Bugzilla/Config/Query.pm b/Bugzilla/Config/Query.pm
index e1287386b..c7b33f620 100644
--- a/Bugzilla/Config/Query.pm
+++ b/Bugzilla/Config/Query.pm
@@ -26,13 +26,6 @@ sub get_param_list {
},
{
- name => 'mostfreqthreshold',
- type => 't',
- default => '2',
- checker => \&check_numeric
- },
-
- {
name => 'mybugstemplate',
type => 't',
default => 'buglist.cgi?resolution=---&amp;emailassigned_to1=1&amp;emailreporter1=1&amp;emailtype1=exact&amp;email1=%userid%'
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index a7f3f9e3b..984a61d45 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -187,6 +187,8 @@ use Memoize;
AUDIT_CREATE
AUDIT_REMOVE
+
+ MOST_FREQUENT_THRESHOLD
);
@Bugzilla::Constants::EXPORT_OK = qw(contenttypes);
@@ -616,6 +618,10 @@ use constant PRIVILEGES_REQUIRED_EMPOWERED => 3;
use constant AUDIT_CREATE => '__create__';
use constant AUDIT_REMOVE => '__remove__';
+# The minimum number of duplicates a bug needs to show up
+# on the "Most frequently reported bugs" page.
+use constant MOST_FREQUENT_THRESHOLD => 2;
+
sub bz_locations {
# Force memoize() to re-compute data per project, to avoid
# sharing the same data across different installations.