summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-11-18 06:12:53 +0100
committerjustdave%syndicomm.com <>2001-11-18 06:12:53 +0100
commit6c63f96acbb67b145b7cd651e4452d9ab1a1d74c (patch)
tree7a63fb0e0d20c7b6a3d8aa5f8e43dc589e6b543c
parentfbae476ccc2716b13b0dbbce630a2f2576dc0564 (diff)
downloadbugzilla-6c63f96acbb67b145b7cd651e4452d9ab1a1d74c.tar.gz
bugzilla-6c63f96acbb67b145b7cd651e4452d9ab1a1d74c.tar.xz
Fix for bug 102487: If admin has set preferences to require a comment on a product/component change, prompt the user that they
forgot to comment first, before prompting for component, milestone, and version for new product. Patch by Garvase Markham <gerv@mozilla.org> r= kiko, ddk
-rwxr-xr-xprocess_bug.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 9e90827f1..d52221d27 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -136,8 +136,10 @@ if ( $::FORM{'id'} ) {
SendSQL("SELECT product FROM bugs WHERE bug_id = $::FORM{'id'}");
$::oldproduct = FetchSQLData();
}
-if ( ($::FORM{'id'} && $::FORM{'product'} ne $::oldproduct)
- || (!$::FORM{'id'} && $::FORM{'product'} ne $::dontchange) ) {
+if ((($::FORM{'id'} && $::FORM{'product'} ne $::oldproduct)
+ || (!$::FORM{'id'} && $::FORM{'product'} ne $::dontchange))
+ && CheckonComment( "reassignbycomponent" ))
+{
if ( Param("strictvaluechecks") ) {
CheckFormField(\%::FORM, 'product', \@::legal_product);
}