1
# -*- Mode: perl; indent-tabs-mode: nil -*-
3
# The contents of this file are subject to the Mozilla Public
4
# License Version 1.1 (the "License"); you may not use this file
5
# except in compliance with the License. You may obtain a copy of
6
# the License at http://www.mozilla.org/MPL/
8
# Software distributed under the License is distributed on an "AS
9
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
# implied. See the License for the specific language governing
11
# rights and limitations under the License.
13
# The Original Code is the Bugzilla Bug Tracking System.
15
# The Initial Developer of the Original Code is Netscape Communications
16
# Corporation. Portions created by Netscape are
17
# Copyright (C) 1998 Netscape Communications Corporation. All
20
# Contributor(s): Terry Weissman <terry@mozilla.org>
21
# Dawn Endico <endico@mozilla.org>
22
# Dan Mosedale <dmose@mozilla.org>
23
# Joe Robins <jmrobins@tgix.com>
24
# Jacob Steenhagen <jake@bugzilla.org>
25
# J. Paul Reed <preed@sigkill.com>
26
# Bradley Baetz <bbaetz@student.usyd.edu.au>
27
# Joseph Heenan <joseph@heenan.me.uk>
28
# Erik Stambaugh <erik@dasbistro.com>
29
# Frédéric Buclin <LpSolit@gmail.com>
32
package Bugzilla::Config::BugFields;
36
use Bugzilla::Config::Common;
39
$Bugzilla::Config::BugFields::sortkey = "04";
44
my @legal_priorities = @{get_legal_field_values('priority')};
45
my @legal_severities = @{get_legal_field_values('bug_severity')};
46
my @legal_platforms = @{get_legal_field_values('rep_platform')};
47
my @legal_OS = @{get_legal_field_values('op_sys')};
51
name => 'useclassification',
57
name => 'showallproducts',
63
name => 'usetargetmilestone',
69
name => 'useqacontact',
75
name => 'usestatuswhiteboard',
87
name => 'usebugaliases',
93
name => 'defaultpriority',
95
choices => \@legal_priorities,
96
default => $legal_priorities[-1],
97
checker => \&check_priority
101
name => 'defaultseverity',
103
choices => \@legal_severities,
104
default => $legal_severities[-1],
105
checker => \&check_severity
109
name => 'defaultplatform',
111
choices => ['', @legal_platforms],
113
checker => \&check_platform
117
name => 'defaultopsys',
119
choices => ['', @legal_OS],
121
checker => \&check_opsys