From eac17c0469a8e2b84b58f33b8f8aeb2f2addc2a9 Mon Sep 17 00:00:00 2001 From: "cyeh%bluemartini.com" <> Date: Thu, 22 Jun 2000 02:03:45 +0000 Subject: Checkin for Bug 42851 'Use listbox with input for CC management on bug form' contributed by dave@intrec.com (Dave Miller) --- bug_form.pl | 78 ++++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 51 insertions(+), 27 deletions(-) (limited to 'bug_form.pl') diff --git a/bug_form.pl b/bug_form.pl index 1263957c7..5f6a77cea 100644 --- a/bug_form.pl +++ b/bug_form.pl @@ -18,6 +18,7 @@ # Rights Reserved. # # Contributor(s): Terry Weissman +# Dave Miller use diagnostics; use strict; @@ -151,9 +152,16 @@ my $component_popup = make_options($::components{$bug{'product'}}, my $ccSet = new RelationSet; $ccSet->mergeFromDB("select who from cc where bug_id=$id"); -my $cc_element = ''; - +my @ccList = $ccSet->toArrayOfStrings(); +my $cc_element = ""; +if (scalar(@ccList) > 0) { + $cc_element = "
\n" . + "Remove selected CCs
\n"; +} my $URL = $bug{'bug_file_loc'}; @@ -169,40 +177,55 @@ print " + - - - + + + + - + " + + + + + + + + + + + + + + - - - + + + - - - + + - "; + + "; if (Param("usetargetmilestone")) { my $url = ""; @@ -220,8 +243,9 @@ if (Param("usetargetmilestone")) { "; -} + " + "; +} else { print ""; } print " "; @@ -234,7 +258,7 @@ if (Param("useqacontact")) { "; } @@ -242,11 +266,11 @@ if (Param("useqacontact")) { print " @@ -256,10 +280,10 @@ if (Param("usestatuswhiteboard")) { print " "; } @@ -276,7 +300,7 @@ if (@::legal_keywords) { print qq{ + }; } @@ -292,7 +316,7 @@ while (MoreSQLData()) { $desc = value_quote($desc); print qq{}; } -print "
Bug#:$bug{'bug_id'}  Platform: Version:
 Reporter:$bug{'reporter'}
Product:   OS: Reporter:$bug{'reporter'}
 Add CC:
Component: Version: Cc: $cc_element
Status: $bug{'bug_status'}  Priority: Cc: $cc_element
 
Resolution: $bug{'resolution'}  Severity: Component:
 
Assigned To: $bug{'assigned_to'}$bug{'assigned_to'}   
$URL - +
Summary: - +
Status Whiteboard: - +
Keywords: -
$date$desc
Create a new attachment (proposed patch, testcase, etc.)
\n"; +print "Create a new attachment (proposed patch, testcase, etc.)\n"; sub EmitDependList { -- cgit v1.2.3-24-g4f1b