From 6c63f96acbb67b145b7cd651e4452d9ab1a1d74c Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Sun, 18 Nov 2001 05:12:53 +0000 Subject: 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 r= kiko, ddk --- process_bug.cgi | 6 ++++-- 1 file 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); } -- cgit v1.2.3-24-g4f1b