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

Allow Maniphest to be searched for mailing list subscribers

Summary: Lets you type any mailable into the "Subscribers" field.

Test Plan: Typed a list, got relevant tasks.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D8161
This commit is contained in:
epriestley 2014-02-07 09:17:19 -08:00
parent b13a51adeb
commit df98ea3ba9

View file

@ -22,7 +22,7 @@ final class ManiphestTaskSearchEngine
$saved->setParameter( $saved->setParameter(
'subscriberPHIDs', 'subscriberPHIDs',
$this->readUsersFromRequest($request, 'subscribers')); $this->readPHIDsFromRequest($request, 'subscribers'));
$saved->setParameter('statuses', $request->getArr('statuses')); $saved->setParameter('statuses', $request->getArr('statuses'));
$saved->setParameter('priorities', $request->getArr('priorities')); $saved->setParameter('priorities', $request->getArr('priorities'));
@ -305,7 +305,7 @@ final class ManiphestTaskSearchEngine
->setValue($author_handles)) ->setValue($author_handles))
->appendChild( ->appendChild(
id(new AphrontFormTokenizerControl()) id(new AphrontFormTokenizerControl())
->setDatasource('/typeahead/common/accounts/') ->setDatasource('/typeahead/common/mailable/')
->setName('subscribers') ->setName('subscribers')
->setLabel(pht('Subscribers')) ->setLabel(pht('Subscribers'))
->setValue($subscriber_handles)) ->setValue($subscriber_handles))