1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 16:52:41 +01:00

Have Maniphest use create transactions when using email

Summary: Fixes T12929. Sets a create transaction if new.

Test Plan: test a new task over email via command line

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12929

Differential Revision: https://secure.phabricator.com/D18279
This commit is contained in:
Chad Little 2017-07-25 13:25:57 -07:00
parent 1588d3e224
commit ca17e2283d

View file

@ -24,6 +24,10 @@ final class ManiphestReplyHandler
$xactions = array(); $xactions = array();
if ($is_new) { if ($is_new) {
$xactions[] = $this->newTransaction()
->setTransactionType(PhabricatorTransactions::TYPE_CREATE)
->setNewValue(true);
$xactions[] = $this->newTransaction() $xactions[] = $this->newTransaction()
->setTransactionType(ManiphestTaskTitleTransaction::TRANSACTIONTYPE) ->setTransactionType(ManiphestTaskTitleTransaction::TRANSACTIONTYPE)
->setNewValue(nonempty($mail->getSubject(), pht('Untitled Task'))); ->setNewValue(nonempty($mail->getSubject(), pht('Untitled Task')));