summaryrefslogtreecommitdiffstats
path: root/editvalues.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-09-09 08:11:40 +0200
committerlpsolit%gmail.com <>2006-09-09 08:11:40 +0200
commita806b298f5bfe5914f27a1419d27366fe59da449 (patch)
tree25d737aeb60f17360de9a67f2017369a4d5d8349 /editvalues.cgi
parent27c1be36a3cbc57e01c8d51af85be76b0748ece6 (diff)
downloadbugzilla-a806b298f5bfe5914f27a1419d27366fe59da449.tar.gz
bugzilla-a806b298f5bfe5914f27a1419d27366fe59da449.tar.xz
Bug 287326: Ability to add custom single-select fields to a bug - Patch by Frédéric Buclin <LpSolit@gmail.com> and Max Kanat-Alexander <mkanat@bugzilla.org> r=mkanat a=myk
Diffstat (limited to 'editvalues.cgi')
-rwxr-xr-xeditvalues.cgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/editvalues.cgi b/editvalues.cgi
index dc35c40e0..2bcbf099f 100755
--- a/editvalues.cgi
+++ b/editvalues.cgi
@@ -35,6 +35,12 @@ use Bugzilla::Config qw(:admin);
our @valid_fields = ('op_sys', 'rep_platform', 'priority', 'bug_severity',
'resolution');
+# Add custom select fields.
+my @custom_fields = Bugzilla->get_fields({custom => 1,
+ type => FIELD_TYPE_SINGLE_SELECT});
+
+push(@valid_fields, map { $_->name } @custom_fields);
+
######################################################################
# Subroutines
######################################################################
@@ -128,6 +134,7 @@ $defaults{'bug_severity'} = 'defaultseverity';
# In this case, only the sortkey can be altered.
my %static;
$static{'resolution'} = ['', 'FIXED', 'MOVED', 'DUPLICATE'];
+$static{$_->name} = ['---'] foreach (@custom_fields);
#
# field = '' -> Show nice list of fields