~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to Bugzilla/Config/BugFields.pm

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- Mode: perl; indent-tabs-mode: nil -*-
2
 
#
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/
7
 
#
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.
12
 
#
13
 
# The Original Code is the Bugzilla Bug Tracking System.
14
 
#
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
18
 
# Rights Reserved.
19
 
#
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>
30
 
#
31
 
 
32
 
package Bugzilla::Config::BugFields;
33
 
 
34
 
use strict;
35
 
 
36
 
use Bugzilla::Config::Common;
37
 
use Bugzilla::Field;
38
 
 
39
 
$Bugzilla::Config::BugFields::sortkey = "04";
40
 
 
41
 
sub get_param_list {
42
 
  my $class = shift;
43
 
 
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')};
48
 
 
49
 
  my @param_list = (
50
 
  {
51
 
   name => 'useclassification',
52
 
   type => 'b',
53
 
   default => 0
54
 
  },
55
 
 
56
 
  {
57
 
   name => 'showallproducts',
58
 
   type => 'b',
59
 
   default => 0
60
 
  },
61
 
 
62
 
  {
63
 
   name => 'usetargetmilestone',
64
 
   type => 'b',
65
 
   default => 0
66
 
  },
67
 
 
68
 
  {
69
 
   name => 'useqacontact',
70
 
   type => 'b',
71
 
   default => 0
72
 
  },
73
 
 
74
 
  {
75
 
   name => 'usestatuswhiteboard',
76
 
   type => 'b',
77
 
   default => 0
78
 
  },
79
 
 
80
 
  {
81
 
   name => 'usevotes',
82
 
   type => 'b',
83
 
   default => 1
84
 
  },
85
 
 
86
 
  {
87
 
   name => 'usebugaliases',
88
 
   type => 'b',
89
 
   default => 0
90
 
  },
91
 
 
92
 
  {
93
 
   name => 'defaultpriority',
94
 
   type => 's',
95
 
   choices => \@legal_priorities,
96
 
   default => $legal_priorities[-1],
97
 
   checker => \&check_priority
98
 
  },
99
 
 
100
 
  {
101
 
   name => 'defaultseverity',
102
 
   type => 's',
103
 
   choices => \@legal_severities,
104
 
   default => $legal_severities[-1],
105
 
   checker => \&check_severity
106
 
  },
107
 
 
108
 
  {
109
 
   name => 'defaultplatform',
110
 
   type => 's',
111
 
   choices => ['', @legal_platforms],
112
 
   default => '',
113
 
   checker => \&check_platform
114
 
  },
115
 
 
116
 
  {
117
 
   name => 'defaultopsys',
118
 
   type => 's',
119
 
   choices => ['', @legal_OS],
120
 
   default => '',
121
 
   checker => \&check_opsys
122
 
  } );
123
 
  return @param_list;
124
 
}
125
 
 
126
 
1;