Page MenuHomePhabricator

D13877.diff
No OneTemporary

D13877.diff

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));

File Metadata

Mime Type
text/plain
Expires
Sat, May 18, 8:03 AM (4 w, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6300065
Default Alt Text
D13877.diff (1 KB)

Event Timeline