Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/editor/PhabricatorAuditEditor.php
| Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | protected function applyFinalEffects( | ||||
| $actor_phid = $this->getActingAsPHID(); | $actor_phid = $this->getActingAsPHID(); | ||||
| $actor_is_author = ($object->getAuthorPHID()) && | $actor_is_author = ($object->getAuthorPHID()) && | ||||
| ($actor_phid == $object->getAuthorPHID()); | ($actor_phid == $object->getAuthorPHID()); | ||||
| $import_status_flag = null; | $import_status_flag = null; | ||||
| foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
| switch ($xaction->getTransactionType()) { | switch ($xaction->getTransactionType()) { | ||||
| case PhabricatorAuditTransaction::TYPE_COMMIT: | case PhabricatorAuditTransaction::TYPE_COMMIT: | ||||
| $import_status_flag = PhabricatorRepositoryCommit::IMPORTED_HERALD; | $import_status_flag = PhabricatorRepositoryCommit::IMPORTED_PUBLISH; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| $old_status = $this->oldAuditStatus; | $old_status = $this->oldAuditStatus; | ||||
| $requests = $object->getAudits(); | $requests = $object->getAudits(); | ||||
| $object->updateAuditStatus($requests); | $object->updateAuditStatus($requests); | ||||
| ▲ Show 20 Lines • Show All 665 Lines • Show Last 20 Lines | |||||