Commit 2c6f3e0f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 293901: cannot specify the QA contact using bug_email.pl - Patch by Frédéric…

Bug 293901: cannot specify the QA contact using bug_email.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=dberlin a=justdave
parent 577fc6b2
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,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.26 2005/05/12 17:26:26 lpsolit%gmail.com Exp $ # $Id: bug_email.pl,v 1.27 2005/05/12 19:13:56 lpsolit%gmail.com Exp $
############################################################### ###############################################################
# 02/12/2000 (SML) # 02/12/2000 (SML)
...@@ -827,10 +827,15 @@ if (! CheckPermissions("CreateBugs", $SenderShort ) ) { ...@@ -827,10 +827,15 @@ if (! CheckPermissions("CreateBugs", $SenderShort ) ) {
# Set QA # Set QA
if (Param("useqacontact")) { if (Param("useqacontact")) {
SendSQL("select initialqacontact from components, products where components.product_id = products.id AND products.name=" . if (defined($Control{'qa_contact'})
SqlQuote($Control{'product'}) . && $Control{'qa_contact'} !~ /^\s*$/ ) {
" and components.name=" . SqlQuote($Control{'component'})); $Control{'qa_contact'} = DBname_to_id($Control{'qa_contact'});
$Control{'qa_contact'} = FetchOneColumn(); } else {
SendSQL("select initialqacontact from components, products where components.product_id = products.id AND products.name=" .
SqlQuote($Control{'product'}) .
" and components.name=" . SqlQuote($Control{'component'}));
$Control{'qa_contact'} = FetchOneColumn();
}
} }
# Set Assigned - assigned_to depends on the product, cause initialowner # Set Assigned - assigned_to depends on the product, cause initialowner
......
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