1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-31 08:58:20 +01:00

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:
Chad Little 2015-08-21 06:58:06 -07:00
parent 22dc3c1be2
commit ad93af8389
2 changed files with 3 additions and 3 deletions

View file

@ -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() {

View file

@ -96,7 +96,7 @@ final class PonderQuestionSearchEngine
array($this->requireViewer()->getPHID()));
case 'answered':
return $query->setParameter(
'answererPHIDs',
'answerers',
array($this->requireViewer()->getPHID()));
}