summaryrefslogtreecommitdiffstats
path: root/extensions/BMO
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-10-21 05:00:37 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-10-21 05:00:37 +0200
commitc8cf2b58bae632b6801337971323d37cf9f5a0f0 (patch)
tree9825f8b4c9ace9343678595c3a6cbe14ce9bb6e9 /extensions/BMO
parentd1b6f1d78bdcde363cbcc80c4e589742819a4e24 (diff)
downloadbugzilla-c8cf2b58bae632b6801337971323d37cf9f5a0f0.tar.gz
bugzilla-c8cf2b58bae632b6801337971323d37cf9f5a0f0.tar.xz
Bug 1209599 - group general preferences by category
Diffstat (limited to 'extensions/BMO')
-rw-r--r--extensions/BMO/Extension.pm16
1 files changed, 12 insertions, 4 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 6e04c2637..67f7cc160 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -1089,13 +1089,21 @@ sub install_before_final_checks {
my ($self, $args) = @_;
# Add product chooser setting
- add_setting('product_chooser',
- ['pretty_product_chooser', 'full_product_chooser'],
- 'pretty_product_chooser');
+ add_setting({
+ name => 'product_chooser',
+ options => ['pretty_product_chooser', 'full_product_chooser'],
+ default => 'pretty_product_chooser',
+ category => 'User Interface'
+ });
# Add option to inject x-bugzilla headers into the message body to work
# around gmail filtering limitations
- add_setting('headers_in_body', ['on', 'off'], 'off');
+ add_setting({
+ name => 'headers_in_body',
+ options => ['on', 'off'],
+ default => 'off',
+ category => 'Email Notifications'
+ });
# Migrate from 'gmail_threading' setting to 'bugmail_new_prefix'
my $dbh = Bugzilla->dbh;