Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2892096
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Jan 19, 16:13 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126375
Default Alt Text
(1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment