From 5a454cef8a98a71aead7f46e97270836c029b36c Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Sat, 13 Jul 2024 17:46:32 +0200 Subject: [PATCH] Set ActionName to "Created" for PhabricatorTransactions::TYPE_CREATE Summary: Explicitly set "Created" as ActionName (to be used as a mail subject line vary prefix) when the transaction type is `PhabricatorTransactions::TYPE_CREATE` to avoid falling back to a generic "Updated" prefix. Closes T15865 Test Plan: Either create a new task and check the mail subject line prefix (if you have a mail setup in your Phorge instance), or use the debug patch in P45 and check the order of action strengths. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15865 Differential Revision: https://we.phorge.it/D25732 --- .../transactions/storage/PhabricatorApplicationTransaction.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php index 607b3713a6..01ebc178cb 100644 --- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php +++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php @@ -1608,6 +1608,8 @@ abstract class PhabricatorApplicationTransaction return pht('Changed Policy'); case PhabricatorTransactions::TYPE_SUBSCRIBERS: return pht('Changed Subscribers'); + case PhabricatorTransactions::TYPE_CREATE: + return pht('Created'); default: return pht('Updated'); }