mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Special case the "added projects" transaction in mail when creating objects
Summary: Fixes T10493. See that task and inline comments for discussion. Test Plan: Created an object with some projects, saw the transaction in resulting mail: {F1600496} Reviewers: chad Reviewed By: chad Maniphest Tasks: T10493 Differential Revision: https://secure.phabricator.com/D15942
This commit is contained in:
parent
3aed39b8b0
commit
7b50eef27a
1 changed files with 8 additions and 1 deletions
|
@ -613,7 +613,14 @@ abstract class PhabricatorApplicationTransaction
|
|||
case PhabricatorObjectMentionsObjectEdgeType::EDGECONST:
|
||||
case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST:
|
||||
return true;
|
||||
break;
|
||||
case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST:
|
||||
// When an object is first created, we hide any corresponding
|
||||
// project transactions in the web UI because you can just look at
|
||||
// the UI element elsewhere on screen to see which projects it
|
||||
// is tagged with. However, in mail there's no other way to get
|
||||
// this information, and it has some amount of value to users, so
|
||||
// we keep the transaction. See T10493.
|
||||
return false;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue