From: justdave%syndicomm.com <> Date: Sun, 18 Nov 2001 05:12:53 +0000 (+0000) Subject: Fix for bug 102487: If admin has set preferences to require a comment on a product... X-Git-Tag: bugzilla-2.16rc1~327 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c63f96acbb67b145b7cd651e4452d9ab1a1d74c;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/process_bug.cgi b/process_bug.cgi index 9e90827f1d..d52221d275 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); }