summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-08-28 17:58:13 +0200
committerjocuri%softhome.net <>2004-08-28 17:58:13 +0200
commit26640251cc8ace3a5fea3b6af121533150d8eed8 (patch)
tree735a76c0d51ab96c22360f64d0e4f0fde3b21ac2 /Bugzilla
parent1dff25eca7b5c489e0807cb8fd595c773bbfd4f5 (diff)
downloadbugzilla-26640251cc8ace3a5fea3b6af121533150d8eed8.tar.gz
bugzilla-26640251cc8ace3a5fea3b6af121533150d8eed8.tar.xz
Patch for bug 248613: Custom global default platform/OS in non-usebrowserinfo scenarios; patch by Marc Schumann <marcschum@web.de>; r=kiko, a=myk.
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Config.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm
index 71bac4225..fa6fc3147 100644
--- a/Bugzilla/Config.pm
+++ b/Bugzilla/Config.pm
@@ -197,6 +197,19 @@ sub UpdateParams {
# We don't want it, so get rid of it
delete $param{'version'};
+ # Change from usebrowserinfo to defaultplatform/defaultopsys combo
+ if (exists $param{'usebrowserinfo'}) {
+ if (!$param{'usebrowserinfo'}) {
+ if (!exists $param{'defaultplatform'}) {
+ $param{'defaultplatform'} = 'Other';
+ }
+ if (!exists $param{'defaultopsys'}) {
+ $param{'defaultopsys'} = 'other';
+ }
+ }
+ delete $param{'usebrowserinfo'};
+ }
+
# Change from a boolean for quips to multi-state
if (exists $param{'usequip'} && !exists $param{'enablequips'}) {
$param{'enablequips'} = $param{'usequip'} ? 'on' : 'off';