From ad93af83891d8cf9eabbb4be9d7e6957304fe40d Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 21 Aug 2015 06:58:06 -0700 Subject: [PATCH] Fix Ponder Answer query joins, builtins Summary: Fixes T9234. The joins method was still the old method and the builtin was calling the wrong key. Test Plan: Test authored builtin, custom search Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T9234 Differential Revision: https://secure.phabricator.com/D13953 --- src/applications/ponder/query/PonderQuestionQuery.php | 4 ++-- src/applications/ponder/query/PonderQuestionSearchEngine.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/applications/ponder/query/PonderQuestionQuery.php b/src/applications/ponder/query/PonderQuestionQuery.php index dd5db40a48..480f2c3296 100644 --- a/src/applications/ponder/query/PonderQuestionQuery.php +++ b/src/applications/ponder/query/PonderQuestionQuery.php @@ -129,7 +129,7 @@ final class PonderQuestionQuery return $questions; } - private function buildJoinsClause(AphrontDatabaseConnection $conn_r) { + protected function buildJoinClauseParts(AphrontDatabaseConnection $conn_r) { $joins = array(); if ($this->answererPHIDs) { @@ -141,7 +141,7 @@ final class PonderQuestionQuery $this->answererPHIDs); } - return implode(' ', $joins); + return $joins; } protected function getPrimaryTableAlias() { diff --git a/src/applications/ponder/query/PonderQuestionSearchEngine.php b/src/applications/ponder/query/PonderQuestionSearchEngine.php index b4cb7aef21..6692d8282a 100644 --- a/src/applications/ponder/query/PonderQuestionSearchEngine.php +++ b/src/applications/ponder/query/PonderQuestionSearchEngine.php @@ -96,7 +96,7 @@ final class PonderQuestionSearchEngine array($this->requireViewer()->getPHID())); case 'answered': return $query->setParameter( - 'answererPHIDs', + 'answerers', array($this->requireViewer()->getPHID())); }