summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config.pm
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-03-11 01:21:33 +0100
committertravis%sedsystems.ca <>2005-03-11 01:21:33 +0100
commitab5067bb0995cce2afe51803b5f005cc9f994416 (patch)
tree93ee81693db753abb0660f6effb44c9706bcf0a5 /Bugzilla/Config.pm
parent6674f61905d98aee08b95c22181aa439bfb041e5 (diff)
downloadbugzilla-ab5067bb0995cce2afe51803b5f005cc9f994416.tar.gz
bugzilla-ab5067bb0995cce2afe51803b5f005cc9f994416.tar.xz
Bug 41972 : Per-user pref to turn quips off
Patch by Shane H. W. Travis <travis@sedsystems.ca> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla/Config.pm')
-rw-r--r--Bugzilla/Config.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm
index 097c7b6c4..d91755891 100644
--- a/Bugzilla/Config.pm
+++ b/Bugzilla/Config.pm
@@ -237,6 +237,19 @@ sub UpdateParams {
delete $param{'loginmethod'};
}
+ # Remove quip-display control from parameters
+ # and give it to users via User Settings (Bug 41972)
+ if ( exists $param{'enablequips'}
+ && !exists $param{'quip_list_entry_control'})
+ {
+ my $new_value;
+ ($param{'enablequips'} eq 'on') && do {$new_value = 'open';};
+ ($param{'enablequips'} eq 'approved') && do {$new_value = 'moderated';};
+ ($param{'enablequips'} eq 'frozen') && do {$new_value = 'closed';};
+ $param{'quip_list_entry_control'} = $new_value;
+ delete $param{'enablequips'};
+ }
+
# --- DEFAULTS FOR NEW PARAMS ---
foreach my $item (@param_list) {