From f806528983b6cd0323286918cc3c45e9533c068b Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 15 Jan 2020 08:26:28 -0800 Subject: [PATCH] Allow the Herald Rule Editor to apply generic "Edge" transactions Summary: Fixes T13469. Currently, "Mute" applies a generic edge transaction but the editor doesn't whitelist them. Test Plan: Muted a Herald rule. Maniphest Tasks: T13469 Differential Revision: https://secure.phabricator.com/D20943 --- src/applications/herald/editor/HeraldRuleEditor.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/applications/herald/editor/HeraldRuleEditor.php b/src/applications/herald/editor/HeraldRuleEditor.php index 1039d7432a..ea099cc6f3 100644 --- a/src/applications/herald/editor/HeraldRuleEditor.php +++ b/src/applications/herald/editor/HeraldRuleEditor.php @@ -30,6 +30,12 @@ final class HeraldRuleEditor return true; } + public function getTransactionTypes() { + $types = parent::getTransactionTypes(); + $types[] = PhabricatorTransactions::TYPE_EDGE; + return $types; + } + protected function getMailTo(PhabricatorLiskDAO $object) { $phids = array();