From 2c2eeed65d68043f9b9469d2e135599e9a749688 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 6 Aug 2015 18:38:14 -0700 Subject: [PATCH] Fix Paste transactions Summary: We're using the wrong constants here, bad copy and paste job. Test Plan: Archive a Paste, check transactions. Reviewers: Subscribers: --- .../paste/storage/PhabricatorPasteTransaction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/paste/storage/PhabricatorPasteTransaction.php b/src/applications/paste/storage/PhabricatorPasteTransaction.php index 6372f38a2b..54b712ebee 100644 --- a/src/applications/paste/storage/PhabricatorPasteTransaction.php +++ b/src/applications/paste/storage/PhabricatorPasteTransaction.php @@ -137,12 +137,12 @@ final class PhabricatorPasteTransaction break; case self::TYPE_STATUS: switch ($new) { - case self::STATUS_OPEN: + case PhabricatorPaste::STATUS_ACTIVE: return pht( '%s activated %s.', $this->renderHandleLink($author_phid), $this->renderHandleLink($object_phid)); - case self::STATUS_CLOSED: + case PhabricatorPaste::STATUS_ARCHIVED: return pht( '%s archived %s.', $this->renderHandleLink($author_phid),