summaryrefslogtreecommitdiffstats
path: root/extensions/TrackingFlags
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-07-15 07:25:05 +0200
committerByron Jones <glob@mozilla.com>2014-07-15 07:25:05 +0200
commit3e8a6b2bdcd591af4e67002489a71753c7920c7a (patch)
treeb23cb1cec75f3ab37a7a3ce07bc7a9acd49862fc /extensions/TrackingFlags
parentf7e326aa8d8a30eebb0156223a9e554bffc0f5ac (diff)
downloadbugzilla-3e8a6b2bdcd591af4e67002489a71753c7920c7a.tar.gz
bugzilla-3e8a6b2bdcd591af4e67002489a71753c7920c7a.tar.xz
Bug 1036303: add a list of tracking/project/etc tracking flags to the bugmail filtering prefs page
Diffstat (limited to 'extensions/TrackingFlags')
-rw-r--r--extensions/TrackingFlags/Extension.pm5
-rw-r--r--extensions/TrackingFlags/lib/Constants.pm6
2 files changed, 1 insertions, 10 deletions
diff --git a/extensions/TrackingFlags/Extension.pm b/extensions/TrackingFlags/Extension.pm
index 9b3d46ad2..301c10245 100644
--- a/extensions/TrackingFlags/Extension.pm
+++ b/extensions/TrackingFlags/Extension.pm
@@ -32,10 +32,7 @@ BEGIN {
}
sub _tracking_flag_names {
- # return just a list of names, hitting the database directly to avoid the
- # overhead of object creation
- return Bugzilla->request_cache->{tracking_flag_names} ||=
- Bugzilla->dbh->selectcol_arrayref("SELECT name FROM tracking_flags");
+ return Bugzilla::Extension::TrackingFlags::Flag->get_all_names();
}
sub page_before_template {
diff --git a/extensions/TrackingFlags/lib/Constants.pm b/extensions/TrackingFlags/lib/Constants.pm
index b6813c3c2..0b1ae3a1a 100644
--- a/extensions/TrackingFlags/lib/Constants.pm
+++ b/extensions/TrackingFlags/lib/Constants.pm
@@ -34,12 +34,6 @@ sub FLAG_TYPES {
collapsed => 1,
sortkey => 2
},
- {
- name => 'b2g',
- description => 'B2G Flags',
- collapsed => 1,
- sortkey => 3
- },
);
return [ sort { $a->{'sortkey'} <=> $b->{'sortkey'} } @flag_types ];
}