From 903f703c12a4f310658ef0abeed6cd9f9e1fc97f Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Thu, 28 Jan 1999 05:17:06 +0000 Subject: Added three new fields (which appear in the UI only if params are turned on): target_milestone, qa_contact, and status_whiteboard. --- process_bug.cgi | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index b602448d0..3fa61a851 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -122,16 +122,29 @@ sub ChangeResolution { foreach my $field ("rep_platform", "priority", "bug_severity", "url", "summary", "component", "bug_file_loc", "short_desc", - "product", "version", "component", "op_sys") { + "product", "version", "component", "op_sys", + "target_milestone", "status_whiteboard") { if (defined $::FORM{$field}) { if ($::FORM{$field} ne $::dontchange) { DoComma(); - $::query .= "$field = " . SqlQuote($::FORM{$field}); + $::query .= "$field = " . SqlQuote(trim($::FORM{$field})); } } } +if (defined $::FORM{'qa_contact'}) { + my $name = trim($::FORM{'qa_contact'}); + if ($name ne $dontchange) { + my $id = 0; + if ($name ne "") { + $id = DBNameToIdAndCheck($name); + } + DoComma(); + $::query .= "qa_contact = $id"; + } +} + ConnectToDatabase(); -- cgit v1.2.3-24-g4f1b