1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 22:40:55 +01:00

Fix Macro active query

Summary: When using the active query in Macro, all Macros are returned. Properly set the status query.

Test Plan: Review active macros, don't see archived macros.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D13912
This commit is contained in:
Chad Little 2015-08-16 17:50:23 -07:00
parent 7212e825fa
commit e29255650c

View file

@ -111,7 +111,9 @@ final class PhabricatorMacroSearchEngine
switch ($query_key) { switch ($query_key) {
case 'active': case 'active':
return $query; return $query->setParameter(
'status',
PhabricatorMacroQuery::STATUS_ACTIVE);
case 'all': case 'all':
return $query->setParameter( return $query->setParameter(
'status', 'status',