mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14: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:
parent
1588d3e224
commit
ca17e2283d
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ final class ManiphestReplyHandler
|
|||
$xactions = array();
|
||||
|
||||
if ($is_new) {
|
||||
$xactions[] = $this->newTransaction()
|
||||
->setTransactionType(PhabricatorTransactions::TYPE_CREATE)
|
||||
->setNewValue(true);
|
||||
|
||||
$xactions[] = $this->newTransaction()
|
||||
->setTransactionType(ManiphestTaskTitleTransaction::TRANSACTIONTYPE)
|
||||
->setNewValue(nonempty($mail->getSubject(), pht('Untitled Task')));
|
||||
|
|
Loading…
Reference in a new issue