svn: /web/php-bugs/trunk/include/ functions.php

From: Date: Sun, 12 Dec 2010 18:20:22 +0000
Subject: svn: /web/php-bugs/trunk/include/ functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9698@lists.php.net to get a copy of this message
felipe Sun, 12 Dec 2010 18:20:22 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306280 Log: - Send mail notification if bug changed the private flag or the bug type to/from Security Changed paths: U web/php-bugs/trunk/include/functions.php Modified: web/php-bugs/trunk/include/functions.php =================================================================== --- web/php-bugs/trunk/include/functions.php 2010-12-12 18:01:46 UTC (rev 306279) +++ web/php-bugs/trunk/include/functions.php 2010-12-12 18:20:22 UTC (rev 306280) @@ -956,8 +956,11 @@ $subj = $bug_types[$bug['bug_type']]; $sdesc = txfield('sdesc', $bug, $in); - /* send mail if status was changed, there is a comment or the bug type was changed to Security */ - if ($in['status'] != $bug['status'] || $ncomment != '' || (isset($in['bug_type']) && $in['bug_type'] != $bug['bug_type'] && $in['bug_type'] == 'Security')) { + /* send mail if status was changed, there is a comment, private turned on/off or the bug type was changed to/from Security */ + if ($in['status'] != $bug['status'] || $ncomment != '' || + (isset($in['private']) && $in['private'] != $bug['private']) || + (isset($in['bug_type']) && $in['bug_type'] != $bug['bug_type'] && + ($in['bug_type'] == 'Security' || $bug['bug_type'] == 'Security'))) { if (isset($in['bug_type']) && $in['bug_type'] != $bug['bug_type']) { $subj = $bug_types[$bug['bug_type']] . '->' . $bug_types[$in['bug_type']]; }

« previous php.webmaster (#9698) next »