Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/transactions/xaction/PhabricatorCoreCreateTransaction.php b/src/applications/transactions/xaction/PhabricatorCoreCreateTransaction.php
index 0c8c337193..15becceab9 100644
--- a/src/applications/transactions/xaction/PhabricatorCoreCreateTransaction.php
+++ b/src/applications/transactions/xaction/PhabricatorCoreCreateTransaction.php
@@ -1,30 +1,39 @@
<?php
final class PhabricatorCoreCreateTransaction
extends PhabricatorCoreTransactionType {
const TRANSACTIONTYPE = 'core:create';
public function generateOldValue($object) {
return null;
}
public function getTitle() {
$editor = $this->getObject()->getApplicationTransactionEditor();
$author = $this->renderAuthor();
$object = $this->renderObject();
return $editor->getCreateObjectTitle($author, $object);
}
public function getTitleForFeed() {
$editor = $this->getObject()->getApplicationTransactionEditor();
$author = $this->renderAuthor();
$object = $this->renderObject();
return $editor->getCreateObjectTitleForFeed($author, $object);
}
+ public function getActionStrength() {
+ // The creation feed is supposed to be "more important" than other things.
+ // So a Task is first created and then closed, and not vice-versa.
+ // The default null was causing weirdnesses in Maniphest and Phriction.
+ // See ManiphestTaskTitleTransaction#getActionStrength()
+ // See PhrictionDocumentTitleTransaction#getActionStrength()
+ return 140;
+ }
+
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Nov 25, 3:32 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1161
Default Alt Text
(1 KB)

Event Timeline