svn: /pear/packages/Bugtracker/trunk/include/ functions.php
| From: | Jani Taskinen | Date: | Thu, 04 Mar 2010 14:00:25 +0000 |
| Subject: | svn: /pear/packages/Bugtracker/trunk/include/ functions.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9260@lists.php.net to get a copy of this message | ||
jani Thu, 04 Mar 2010 14:00:25 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295822
Log:
- Fixed duplicate last comment issue (changelog stuff not necessary in emails)
Changed paths:
U pear/packages/Bugtracker/trunk/include/functions.php
Modified: pear/packages/Bugtracker/trunk/include/functions.php
===================================================================
--- pear/packages/Bugtracker/trunk/include/functions.php 2010-03-04 13:54:35 UTC (rev 295821)
+++ pear/packages/Bugtracker/trunk/include/functions.php 2010-03-04 14:00:25 UTC (rev 295822)
@@ -975,7 +975,12 @@
$output = '';
$count = 0;
- $res = $dbh->prepare("SELECT ts, email, comment FROM bugdb_comments WHERE bug = ? ORDER BY
ts DESC")->execute(array($bug_id));
+ $res = $dbh->prepare("
+ SELECT ts, email, comment
+ FROM bugdb_comments
+ WHERE bug = ? AND comment_type != 'log'
+ ORDER BY ts DESC
+ ")->execute(array($bug_id));
// skip the most recent unless the caller wanted all comments
if (!$all) {