From ab5067bb0995cce2afe51803b5f005cc9f994416 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Fri, 11 Mar 2005 00:21:33 +0000 Subject: Bug 41972 : Per-user pref to turn quips off Patch by Shane H. W. Travis r=mkanat a=justdave --- Bugzilla/Config.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Bugzilla') 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) { -- cgit v1.2.3-24-g4f1b