fixed an obscure bug in Find Posts that caused the Next/Previous buttons to not show up when searching for posts globally or in communities
This commit is contained in:
parent
e7b3801a72
commit
5bf40a92a1
|
@ -11,7 +11,7 @@
|
||||||
*
|
*
|
||||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||||
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
* Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
@ -1440,7 +1440,7 @@ class CommunityUserContextImpl implements CommunityContext, CommunityBackend
|
||||||
+ ">= c.read_lvl AND t.confid = c.confid AND t.topicid = p.topicid AND "
|
+ ">= c.read_lvl AND t.confid = c.confid AND t.topicid = p.topicid AND "
|
||||||
+ "p.scribble_uid IS NULL AND p.postid = d.postid AND MATCH(d.data) AGAINST (");
|
+ "p.scribble_uid IS NULL AND p.postid = d.postid AND MATCH(d.data) AGAINST (");
|
||||||
sql.append(SQLUtil.encodeStringArg(search_terms)).append(") LIMIT ").append(offset).append(", ");
|
sql.append(SQLUtil.encodeStringArg(search_terms)).append(") LIMIT ").append(offset).append(", ");
|
||||||
sql.append(count).append(';');
|
sql.append(count+1).append(';');
|
||||||
|
|
||||||
// execute the query and load the results into the return arraylist
|
// execute the query and load the results into the return arraylist
|
||||||
ResultSet rs = stmt.executeQuery(sql.toString());
|
ResultSet rs = stmt.executeQuery(sql.toString());
|
||||||
|
|
|
@ -1482,7 +1482,7 @@ class UserContextImpl implements UserContext, UserBackend
|
||||||
+ "IFNULL(x.granted_lvl,0)) >= c.read_lvl AND t.confid = c.confid AND t.topicid = p.topicid "
|
+ "IFNULL(x.granted_lvl,0)) >= c.read_lvl AND t.confid = c.confid AND t.topicid = p.topicid "
|
||||||
+ "AND p.scribble_uid IS NULL AND p.postid = d.postid AND MATCH(d.data) AGAINST (");
|
+ "AND p.scribble_uid IS NULL AND p.postid = d.postid AND MATCH(d.data) AGAINST (");
|
||||||
sql.append(SQLUtil.encodeStringArg(search_terms)).append(") LIMIT ").append(offset).append(", ");
|
sql.append(SQLUtil.encodeStringArg(search_terms)).append(") LIMIT ").append(offset).append(", ");
|
||||||
sql.append(count).append(';');
|
sql.append(count+1).append(';');
|
||||||
|
|
||||||
// execute the query and load the results into the return arraylist
|
// execute the query and load the results into the return arraylist
|
||||||
ResultSet rs = stmt.executeQuery(sql.toString());
|
ResultSet rs = stmt.executeQuery(sql.toString());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user