summaryrefslogtreecommitdiffstats
path: root/defparams.pl
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-01-28 06:17:06 +0100
committerterry%netscape.com <>1999-01-28 06:17:06 +0100
commit903f703c12a4f310658ef0abeed6cd9f9e1fc97f (patch)
tree6515cd54357f378680bc193f60e3e9d9a1ea32a7 /defparams.pl
parenta7ac06a61d2e7b17c62cb31c7c09a60c34d0ab68 (diff)
downloadbugzilla-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar.gz
bugzilla-903f703c12a4f310658ef0abeed6cd9f9e1fc97f.tar.xz
Added three new fields (which appear in the UI only if params are
turned on): target_milestone, qa_contact, and status_whiteboard.
Diffstat (limited to 'defparams.pl')
-rw-r--r--defparams.pl32
1 files changed, 31 insertions, 1 deletions
diff --git a/defparams.pl b/defparams.pl
index 97ef398df..cfb41fbae 100644
--- a/defparams.pl
+++ b/defparams.pl
@@ -30,6 +30,9 @@ sub WriteParams {
foreach my $i (@::param_list) {
if (!defined $::param{$i}) {
$::param{$i} = $::param_default{$i};
+ if (!defined $::param{$i}) {
+ die "No default parameter ever specified for $i";
+ }
}
}
mkdir("data", 0777);
@@ -37,7 +40,7 @@ sub WriteParams {
my $tmpname = "data/params.$$";
open(FID, ">$tmpname") || die "Can't create $tmpname";
my $v = $::param{'version'};
- undef $::param{'version'}; # Don't write the version number out to
+ delete $::param{'version'}; # Don't write the version number out to
# the params file.
print FID GenerateCode('%::param');
$::param{'version'} = $v;
@@ -82,6 +85,7 @@ sub check_numeric {
# t -- A short text entry field (suitable for a single line)
# l -- A long text field (suitable for many lines)
# b -- A boolean value (either 1 or 0)
+# i -- An integer.
# defenum -- This param defines an enum that defines a column in one of
# the database tables. The name of the parameter is of the form
# "tablename.columnname".
@@ -239,4 +243,30 @@ DefParam("defaultquery",
"t",
"bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=Mozilla&order=%22Importance%22");
+DefParam("usetargetmilestone",
+ "Do you wish to use the Target Milestone field?",
+ "b",
+ 0);
+
+DefParam("nummilestones",
+ "If using Target Milestone, how many milestones do you wish to
+ appear?",
+ "t",
+ 10,
+ \&check_numeric);
+
+DefParam("useqacontact",
+ "Do you wish to use the QA Contact field?",
+ "b",
+ 0);
+
+DefParam("usestatuswhiteboard",
+ "Do you wish to use the Status Whiteboard field?",
+ "b",
+ 0);
+
+
+
+
1;
+