mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Fix issue where new transaction comments can be spread across multiple transactions
Summary: Ref T2222. We need this `clone` when constructing the new multi-comments in Differential, or we get double-comments internally. This shows up as emails with double comment text. Test Plan: Sent some "Accept + comment" emails, only one comment in the body. Reviewers: chad, btrahan Reviewed By: chad CC: aran Maniphest Tasks: T2222 Differential Revision: https://secure.phabricator.com/D8206
This commit is contained in:
parent
db66cd830d
commit
54ce4a719e
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ final class DifferentialComment extends DifferentialDAO
|
|||
private $arbitraryDiffForFacebook;
|
||||
private $proxyComment;
|
||||
|
||||
public function __clone() {
|
||||
if ($this->proxyComment) {
|
||||
$this->proxyComment = clone $this->proxyComment;
|
||||
}
|
||||
}
|
||||
|
||||
public function getContent() {
|
||||
return $this->getProxyComment()->getContent();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue