[Fusionforge-commits] r14599 - in branches/Branch_5_1: . src/common/search

Roland Mas lolando at fusionforge.org
Mon Oct 10 16:48:36 CEST 2011


Author: lolando
Date: 2011-10-10 16:48:36 +0200 (Mon, 10 Oct 2011)
New Revision: 14599

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php
Log:
Added missing column in GROUP BY clause

Modified: branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php
===================================================================
--- branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php	2011-10-10 13:50:14 UTC (rev 14598)
+++ branches/Branch_5_1/src/common/search/ForumSearchQuery.class.php	2011-10-10 14:48:36 UTC (rev 14599)
@@ -86,7 +86,7 @@
 						 array($words)) ;
 		} else {
 			$qpa = db_construct_qpa ($qpa,
-						 'SELECT x.* FROM (SELECT forum.msg_id, forum.subject, forum.post_date, users.realname, forum.subject||$1||forum.body as full_string_agg FROM forum,users WHERE users.user_id=forum.posted_by AND forum.group_forum_id=$2 GROUP BY msg_id, subject, post_date, realname) AS x WHERE ',
+						 'SELECT x.* FROM (SELECT forum.msg_id, forum.subject, forum.post_date, users.realname, forum.subject||$1||forum.body as full_string_agg FROM forum,users WHERE users.user_id=forum.posted_by AND forum.group_forum_id=$2 GROUP BY msg_id, subject, post_date, realname, body) AS x WHERE ',
 						 array ($this->field_separator,
 							$this->forumId)) ;
 			$qpa = $this->addIlikeCondition ($qpa, 'full_string_agg') ;




More information about the Fusionforge-commits mailing list