From ac729278328ed9679229d11ba1eefdad784b59e2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 3 Mar 2016 05:46:02 -0800 Subject: [PATCH] Fix overzealous transactions on dashboard panels Summary: Fixes T10474. This had the same root cause as T10024 -- a missing call to `didSetValueFromStorage()` because of the way the fields work. Test Plan: - Edited a text panel before change, without changing text: got silly transaction. - Made change, edited text panel without changing text, no transaction. - Made a real edit, got a good transaction. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10474 Differential Revision: https://secure.phabricator.com/D15391 --- .../customfield/PhabricatorDashboardPanelCoreCustomField.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/dashboard/customfield/PhabricatorDashboardPanelCoreCustomField.php b/src/applications/dashboard/customfield/PhabricatorDashboardPanelCoreCustomField.php index d002b1e2c3..cf045265b9 100644 --- a/src/applications/dashboard/customfield/PhabricatorDashboardPanelCoreCustomField.php +++ b/src/applications/dashboard/customfield/PhabricatorDashboardPanelCoreCustomField.php @@ -21,6 +21,7 @@ final class PhabricatorDashboardPanelCoreCustomField public function readValueFromObject(PhabricatorCustomFieldInterface $object) { $key = $this->getProxy()->getRawStandardFieldKey(); $this->setValueFromStorage($object->getProperty($key)); + $this->didSetValueFromStorage(); } public function applyApplicationTransactionInternalEffects(