diff options
author | jocuri%softhome.net <> | 2004-08-28 17:58:13 +0200 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-08-28 17:58:13 +0200 |
commit | 26640251cc8ace3a5fea3b6af121533150d8eed8 (patch) | |
tree | 735a76c0d51ab96c22360f64d0e4f0fde3b21ac2 /defparams.pl | |
parent | 1dff25eca7b5c489e0807cb8fd595c773bbfd4f5 (diff) | |
download | bugzilla-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 'defparams.pl')
-rw-r--r-- | defparams.pl | 52 |
1 files changed, 44 insertions, 8 deletions
diff --git a/defparams.pl b/defparams.pl index c0e608a4d..57675e07d 100644 --- a/defparams.pl +++ b/defparams.pl @@ -66,6 +66,26 @@ sub check_priority { return ""; } +sub check_platform { + my ($value) = (@_); + &::GetVersionTable(); + if (lsearch(['', @::legal_platform], $value) < 0) { + return "Must be empty or a legal platform value: one of " . + join(", ", @::legal_platform); + } + return ""; +} + +sub check_opsys { + my ($value) = (@_); + &::GetVersionTable(); + if (lsearch(['', @::legal_opsys], $value) < 0) { + return "Must be empty or a legal operating system value: one of " . + join(", ", @::legal_opsys); + } + return ""; +} + sub check_shadowdb { my ($value) = (@_); $value = trim($value); @@ -741,6 +761,30 @@ You will get this message once a day until you\'ve dealt with these bugs! }, { + name => 'defaultplatform', + desc => 'This is the platform that is preselected on the bug '. + 'entry form.<br>'. + 'You can leave this empty: '. + 'Bugzilla will then use the platform that the browser '. + 'reports to be running on as the default.', + type => 't', + default => '', + checker => \&check_platform + }, + + { + name => 'defaultopsys', + desc => 'This is the operating system that is preselected on the bug '. + 'entry form.<br>'. + 'You can leave this empty: '. + 'Bugzilla will then use the operating system that the browser '. + 'reports to be running on as the default.', + type => 't', + default => '', + checker => \&check_opsys + }, + + { name => 'usetargetmilestone', desc => 'Do you wish to use the Target Milestone field?', type => 'b', @@ -770,14 +814,6 @@ You will get this message once a day until you\'ve dealt with these bugs! }, { - name => 'usebrowserinfo', - desc => 'Do you want bug reports to be assigned an OS & Platform based ' . - 'on the browser the user makes the report from?', - type => 'b', - default => 1 - }, - - { name => 'usevotes', desc => 'Do you wish to allow users to vote for bugs? Note that in order ' . 'for this to be effective, you will have to change the maximum ' . |