From e86aae99de0b4399b98e190b79a30c7fc1430f76 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 13 Nov 2019 10:29:08 -0800 Subject: [PATCH] Surface edits to "Text" panels on dashboards as remarkup edits Summary: Fixes T13456. These edits are remarkup edits and should attach files, trigger mentions, and so on. Test Plan: Created a text panel, dropped a file in. After changes, saw the file attach properly. Maniphest Tasks: T13456 Differential Revision: https://secure.phabricator.com/D20906 --- .../PhabricatorDashboardTextPanelTextTransaction.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php b/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php index 7b48022119..1822810c05 100644 --- a/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php +++ b/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php @@ -9,4 +9,14 @@ final class PhabricatorDashboardTextPanelTextTransaction return 'text'; } + public function newRemarkupChanges() { + $changes = array(); + + $changes[] = $this->newRemarkupChange() + ->setOldValue($this->getOldValue()) + ->setNewValue($this->getNewValue()); + + return $changes; + } + }