[svn-commits] jpeeler: mantis/trunk r106 - /mantis/trunk/bug_file_add.php

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon May 4 15:56:11 CDT 2009


Author: jpeeler
Date: Mon May  4 15:56:07 2009
New Revision: 106

URL: http://svn.asterisk.org/svn-view/thirdparty?view=rev&rev=106
Log:
modify summary to be prefixed with "[patch]" when code submission is made by anybody, not just the author

Modified:
    mantis/trunk/bug_file_add.php

Modified: mantis/trunk/bug_file_add.php
URL: http://svn.asterisk.org/svn-view/thirdparty/mantis/trunk/bug_file_add.php?view=diff&rev=106&r1=105&r2=106
==============================================================================
--- mantis/trunk/bug_file_add.php (original)
+++ mantis/trunk/bug_file_add.php Mon May  4 15:56:07 2009
@@ -71,9 +71,9 @@
 			/* it is a code submission, and by the author of the bug id, probably a patch */
 			$summary = &$t_bug_data->summary;
 			
-			/* they do not have [patch] in the summary and author is uploader */
+			/* they do not have [patch] in the summary */
 			/* Note: You might want to add i for insensitive search */
-			if (!preg_match("/^\s*\[patch\]/i", $summary) && $t_user_id == bug_get_field($f_bug_id, 'reporter_id')) {
+			if (!preg_match("/^\s*\[patch\]/i", $summary) /* && $t_user_id == bug_get_field($f_bug_id, 'reporter_id') */) {
 				$summary = "[patch] " . $summary;	
 				bug_update( $f_bug_id, $t_bug_data, true, false );
 			}




More information about the svn-commits mailing list