Commit 635e37bb authored by jake%acutex.net's avatar jake%acutex.net

Bug 79739 - Initial Owner and QA Contact were not being handled correctly by the…

Bug 79739 - Initial Owner and QA Contact were not being handled correctly by the email interface after they were changed to userid's in bug 66876. r= justdave@syndicomm.com
parent 6ea40e9a
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
# #
# You need to work with bug_email.pl the MIME::Parser installed. # You need to work with bug_email.pl the MIME::Parser installed.
# #
# $Id: bug_email.pl,v 1.8 2000/09/06 06:01:10 dave%intrec.com Exp $ # $Id: bug_email.pl,v 1.9 2001/05/25 12:48:47 jake%acutex.net Exp $
############################################################### ###############################################################
# 02/12/2000 (SML) # 02/12/2000 (SML)
...@@ -837,19 +837,11 @@ if (! CheckPermissions("CreateBugs", $SenderShort ) ) { ...@@ -837,19 +837,11 @@ if (! CheckPermissions("CreateBugs", $SenderShort ) ) {
} }
# Set QA # Set QA
SendSQL("select initialqacontact from components where program=" . if (Param("useqacontact")) {
SqlQuote($Control{'product'}) . SendSQL("select initialqacontact from components where program=" .
" and value=" . SqlQuote($Control{'component'})); SqlQuote($Control{'product'}) .
my $qacontact = FetchOneColumn(); " and value=" . SqlQuote($Control{'component'}));
if (defined $qacontact && $qacontact !~ /^\s*$/) { $Control{'qacontact'} = FetchOneColumn();
#$Control{'qa_contact'} = DBNameToIdAndCheck($qacontact, 1);
$Control{'qa_contact'} = DBname_to_id($qacontact);
if ( ! $Control{'qa_contact'} ) {
BugMailError( 0, "Could not resolve qa_contact !\n" );
}
#push(@bug_fields, "qa_contact");
} }
# Set Assigned - assigned_to depends on the product, cause initialowner # Set Assigned - assigned_to depends on the product, cause initialowner
...@@ -936,21 +928,18 @@ $Control{'component'} = $Component; ...@@ -936,21 +928,18 @@ $Control{'component'} = $Component;
# #
# Check assigned_to # Check assigned_to
# if no assigned_to was given, generate it from the product-DB # If a value was given in the e-mail, convert it to an ID,
my $forceAssignedOK = 0; # otherwise, retrieve it from the database.
if ( (! defined($Control{'assigned_to'}) ) if ( defined($Control{'assigned_to'})
|| $Control{'assigned_to'} =~ /^\s*$/ ) { && $Control{'assigned_to'} !~ /^\s*$/ ) {
$Control{'assigned_to'} = DBname_to_id($Control{'assigned_to'});
} else {
SendSQL("select initialowner from components where program=" . SendSQL("select initialowner from components where program=" .
SqlQuote($Control{'product'}) . SqlQuote($Control{'product'}) .
" and value=" . SqlQuote($Control{'component'})); " and value=" . SqlQuote($Control{'component'}));
$Control{'assigned_to'} = FetchOneColumn(); $Control{'assigned_to'} = FetchOneColumn();
$forceAssignedOK = 1;
} }
# Recode Names
$Control{'assigned_to'} = DBname_to_id($Control{'assigned_to'}, $forceAssignedOK);
if ( $Control{'assigned_to'} == 0 ) { if ( $Control{'assigned_to'} == 0 ) {
my $Text = "Could not resolve key \@assigned_to !\n" . my $Text = "Could not resolve key \@assigned_to !\n" .
"If you do NOT send a value for assigned_to, the bug will be assigned to\n" . "If you do NOT send a value for assigned_to, the bug will be assigned to\n" .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment