From 8b05487dd0b80967fd99f3027d3041c3c4aaeed6 Mon Sep 17 00:00:00 2001 From: lkassianik Date: Thu, 7 May 2015 21:16:30 -0700 Subject: [PATCH] Adding basic transaction messages for Calendar event updates re:all-day Summary: Closes T8021, Adding basic transaction messages for Calendar event updates re:all-day Test Plan: Toggling "all-day" checkbox on event edit and saving should result in feed stories for event and Feed. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T8021 Differential Revision: https://secure.phabricator.com/D12766 --- .../PhabricatorCalendarEventTransaction.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/applications/calendar/storage/PhabricatorCalendarEventTransaction.php b/src/applications/calendar/storage/PhabricatorCalendarEventTransaction.php index ef61e5b1e8..d3e7a25efd 100644 --- a/src/applications/calendar/storage/PhabricatorCalendarEventTransaction.php +++ b/src/applications/calendar/storage/PhabricatorCalendarEventTransaction.php @@ -132,6 +132,16 @@ final class PhabricatorCalendarEventTransaction return pht( "%s updated the event's description.", $this->renderHandleLink($author_phid)); + case self::TYPE_ALL_DAY: + if ($new) { + return pht( + '%s made this an all day event.', + $this->renderHandleLink($author_phid)); + } else { + return pht( + '%s converted this from an all day event.', + $this->renderHandleLink($author_phid)); + } case self::TYPE_CANCEL: if ($new) { return pht( @@ -291,6 +301,18 @@ final class PhabricatorCalendarEventTransaction '%s updated the description of %s.', $this->renderHandleLink($author_phid), $this->renderHandleLink($object_phid)); + case self::TYPE_ALL_DAY: + if ($new) { + return pht( + '%s made %s an all day event.', + $this->renderHandleLink($author_phid), + $this->renderHandleLink($object_phid)); + } else { + return pht( + '%s converted %s from an all day event.', + $this->renderHandleLink($author_phid), + $this->renderHandleLink($object_phid)); + } case self::TYPE_CANCEL: if ($new) { return pht(