Page MenuHomePhabricator

D20546.id.diff
No OneTemporary

D20546.id.diff

diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -54,6 +54,7 @@
private $heraldTranscript;
private $subscribers;
private $unmentionablePHIDMap = array();
+ private $transactionGroupID;
private $applicationEmail;
private $isPreview;
@@ -975,6 +976,14 @@
return $this->cancelURI;
}
+ protected function getTransactionGroupID() {
+ if ($this->transactionGroupID === null) {
+ $this->transactionGroupID = Filesystem::readRandomCharacters(32);
+ }
+
+ return $this->transactionGroupID;
+ }
+
final public function applyTransactions(
PhabricatorLiskDAO $object,
array $xactions) {
@@ -1164,7 +1173,7 @@
throw $ex;
}
- $group_id = Filesystem::readRandomCharacters(32);
+ $group_id = $this->getTransactionGroupID();
foreach ($xactions as $xaction) {
if ($was_locked) {
@@ -4666,6 +4675,7 @@
}
$editor->mustEncrypt = $this->mustEncrypt;
+ $editor->transactionGroupID = $this->getTransactionGroupID();
return $editor;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 28, 10:53 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7715352
Default Alt Text
D20546.id.diff (1 KB)

Event Timeline