Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/editor/PhabricatorAuditEditor.php
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | final class PhabricatorAuditEditor | ||||
| } | } | ||||
| protected function applyCustomInternalTransaction( | protected function applyCustomInternalTransaction( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
| switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
| case PhabricatorAuditActionConstants::INLINE: | case PhabricatorAuditActionConstants::INLINE: | ||||
| $xaction->getComment()->setAttribute('editing', false); | $comment = $xaction->getComment(); | ||||
| $comment->setAttribute('editing', false); | |||||
| PhabricatorVersionedDraft::purgeDrafts( | |||||
| $comment->getPHID(), | |||||
| $this->getActingAsPHID()); | |||||
| return; | return; | ||||
| case PhabricatorAuditTransaction::TYPE_COMMIT: | case PhabricatorAuditTransaction::TYPE_COMMIT: | ||||
| return; | return; | ||||
| } | } | ||||
| return parent::applyCustomInternalTransaction($object, $xaction); | return parent::applyCustomInternalTransaction($object, $xaction); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 760 Lines • Show Last 20 Lines | |||||