diff --git a/src/applications/ponder/query/PonderQuestionSearchEngine.php b/src/applications/ponder/query/PonderQuestionSearchEngine.php --- a/src/applications/ponder/query/PonderQuestionSearchEngine.php +++ b/src/applications/ponder/query/PonderQuestionSearchEngine.php @@ -57,6 +57,7 @@ protected function getBuiltinQueryNames() { $names = array( + 'recent' => pht('Recent Questions'), 'open' => pht('Open Questions'), 'resolved' => pht('Resolved Questions'), 'all' => pht('All Questions'), @@ -80,6 +81,12 @@ case 'open': return $query->setParameter( 'statuses', array(PonderQuestionStatus::STATUS_OPEN)); + case 'recent': + return $query->setParameter( + 'statuses', array( + PonderQuestionStatus::STATUS_OPEN, + PonderQuestionStatus::STATUS_CLOSED_RESOLVED, + )); case 'resolved': return $query->setParameter( 'statuses', array(PonderQuestionStatus::STATUS_CLOSED_RESOLVED));