From e4a0c170799c16f8c129ff8e768b7faaf892f103 Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Mon, 4 Feb 2013 19:05:50 -0800 Subject: [PATCH] fix Conpherence sorting Summary: this broke when I moved sorting to the editor. Turns out you can't have custom hooks for the comment transaction, and thus I couldn't update participation inside the editor. This fixes this by removing the empty switch statement for the transaction type inside the parent class editor. This should have no effect other than fixing Conpherence. Note that conpherences will need another message, etc for a given conphernece to fix itself. Test Plan: Conpherence threads were updated properly! Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2399 Differential Revision: https://secure.phabricator.com/D4817 --- .../editor/PhabricatorApplicationTransactionEditor.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php index 7a3d07fd77..349bb3c453 100644 --- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php +++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php @@ -153,25 +153,20 @@ abstract class PhabricatorApplicationTransactionEditor PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { switch ($xaction->getTransactionType()) { - case PhabricatorTransactions::TYPE_COMMENT: - break; case PhabricatorTransactions::TYPE_VIEW_POLICY: $object->setViewPolicy($xaction->getNewValue()); break; case PhabricatorTransactions::TYPE_EDIT_POLICY: $object->setEditPolicy($xaction->getNewValue()); break; - default: - return $this->applyCustomInternalTransaction($object, $xaction); } + return $this->applyCustomInternalTransaction($object, $xaction); } private function applyExternalEffects( PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction) { switch ($xaction->getTransactionType()) { - case PhabricatorTransactions::TYPE_COMMENT: - break; case PhabricatorTransactions::TYPE_SUBSCRIBERS: $subeditor = id(new PhabricatorSubscriptionsEditor()) ->setObject($object) @@ -179,9 +174,8 @@ abstract class PhabricatorApplicationTransactionEditor ->subscribeExplicit($xaction->getNewValue()) ->save(); break; - default: - return $this->applyCustomExternalTransaction($object, $xaction); } + return $this->applyCustomExternalTransaction($object, $xaction); } protected function applyCustomInternalTransaction(