Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15343288
D13877.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13877.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 10:19 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7476194
Default Alt Text
D13877.diff (1 KB)
Attached To
Mode
D13877: Change Ponder default query to 'Recent'
Attached
Detach File
Event Timeline
Log In to Comment