Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/editor/PhabricatorAuditEditor.php
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | protected function applyCustomExternalTransaction( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
| switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
| case PhabricatorTransactions::TYPE_COMMENT: | case PhabricatorTransactions::TYPE_COMMENT: | ||||
| case PhabricatorTransactions::TYPE_SUBSCRIBERS: | case PhabricatorTransactions::TYPE_SUBSCRIBERS: | ||||
| case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
| case PhabricatorAuditActionConstants::ACTION: | case PhabricatorAuditActionConstants::ACTION: | ||||
| case PhabricatorAuditActionConstants::INLINE: | |||||
| case PhabricatorAuditTransaction::TYPE_COMMIT: | case PhabricatorAuditTransaction::TYPE_COMMIT: | ||||
| return; | return; | ||||
| case PhabricatorAuditActionConstants::INLINE: | |||||
| $reply = $xaction->getComment()->getReplyToComment(); | |||||
| if ($reply && !$reply->getHasReplies()) { | |||||
| $reply->setHasReplies(1)->save(); | |||||
| } | |||||
| return; | |||||
| case PhabricatorAuditActionConstants::ADD_AUDITORS: | case PhabricatorAuditActionConstants::ADD_AUDITORS: | ||||
| $new = $xaction->getNewValue(); | $new = $xaction->getNewValue(); | ||||
| if (!is_array($new)) { | if (!is_array($new)) { | ||||
| $new = array(); | $new = array(); | ||||
| } | } | ||||
| $old = $xaction->getOldValue(); | $old = $xaction->getOldValue(); | ||||
| if (!is_array($old)) { | if (!is_array($old)) { | ||||
| ▲ Show 20 Lines • Show All 782 Lines • Show Last 20 Lines | |||||