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
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -96,7 +96,7 @@ final class PonderQuestionSearchEngine
|
||||
array($this->requireViewer()->getPHID()));
|
||||
case 'answered':
|
||||
return $query->setParameter(
|
||||
'answererPHIDs',
|
||||
'answerers',
|
||||
array($this->requireViewer()->getPHID()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user