From 0454e22cff08db09ab097132341f03f996b3a8a8 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Tue, 9 Mar 1999 10:33:58 +0000 Subject: Added params to control how priorities are set in a new bug. You can now choose whether to let submitters of new bugs choose a priority, or whether they should just accept the default priority (which is now no longer hardcoded to "P2", but is instead a param.) The default value of the params will cause the same behavior as before. --- enter_bug.cgi | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index 550647726..83792e851 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -163,8 +163,10 @@ my $assign_element = GeneratePersonInput('assigned_to', 1, my $cc_element = GeneratePeopleInput('cc', formvalue('cc')); +my $priority = Param('defaultpriority'); + my $priority_popup = make_popup('priority', \@::legal_priority, - formvalue('priority', 'P2'), 0); + formvalue('priority', $priority), 0); my $sev_popup = make_popup('bug_severity', \@::legal_severity, formvalue('bug_severity', 'normal'), 0); my $platform_popup = make_popup('rep_platform', \@::legal_platform, @@ -203,9 +205,16 @@ print " - + "; +if (Param('letsubmitterchoosepriority')) { + print " Priority: - $priority_popup + $priority_popup"; +} else { + print ''; +} +print " Severity: $sev_popup -- cgit v1.2.3-24-g4f1b