1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 05:20:56 +01:00

Fixing some calendar event timeline issues.

Summary: Ref T7953, Fixing some calendar event timeline issues.

Test Plan: Create event, event timeline should reflect the transaction.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7953

Differential Revision: https://secure.phabricator.com/D12592
This commit is contained in:
lkassianik 2015-04-28 08:56:00 -07:00
parent 43ab0e879f
commit d816ac0b01
2 changed files with 5 additions and 6 deletions

View file

@ -102,10 +102,6 @@ final class PhabricatorCalendarEventViewController
->setUser($viewer) ->setUser($viewer)
->setObject($event); ->setObject($event);
// $properties->addProperty(
// pht('Name'),
// $event->getName());
$properties->addProperty( $properties->addProperty(
pht('Starts'), pht('Starts'),
phabricator_datetime($event->getDateFrom(), $viewer)); phabricator_datetime($event->getDateFrom(), $viewer));

View file

@ -43,7 +43,6 @@ final class PhabricatorCalendarEventTransaction
public function shouldHide() { public function shouldHide() {
$old = $this->getOldValue(); $old = $this->getOldValue();
switch ($this->getTransactionType()) { switch ($this->getTransactionType()) {
case self::TYPE_NAME:
case self::TYPE_START_DATE: case self::TYPE_START_DATE:
case self::TYPE_END_DATE: case self::TYPE_END_DATE:
case self::TYPE_STATUS: case self::TYPE_STATUS:
@ -76,7 +75,11 @@ final class PhabricatorCalendarEventTransaction
$type = $this->getTransactionType(); $type = $this->getTransactionType();
switch ($type) { switch ($type) {
case self::TYPE_NAME: case self::TYPE_NAME:
if ($old) { if ($old === null) {
return pht(
'%s created this event.',
$this->renderHandleLink($author_phid));
} else {
return pht( return pht(
'%s changed the name of this event from %s to %s.', '%s changed the name of this event from %s to %s.',
$this->renderHandleLink($author_phid), $this->renderHandleLink($author_phid),