From 30e6203d8c453e74a8c40c9bc561151d45c07030 Mon Sep 17 00:00:00 2001 From: lkassianik Date: Mon, 15 Jun 2015 11:52:57 -0700 Subject: [PATCH] Creating a recurring event should save it as a recurring event. Summary: Fixes T8551, Creating a recurring event should save it as a recurring event Test Plan: Before patch: -create an event -flag as recurring -save -Result: event is not recurring -After patch Result: event saves as recurring. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8551 Differential Revision: https://secure.phabricator.com/D13302 --- .../controller/PhabricatorCalendarEventEditController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php index 218fe17371..47736f38fe 100644 --- a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php +++ b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php @@ -191,7 +191,7 @@ final class PhabricatorCalendarEventEditController PhabricatorCalendarEventTransaction::TYPE_NAME) ->setNewValue($name); - if ($is_parent && $this->isCreate()) { + if ($is_recurring && $this->isCreate()) { $xactions[] = id(new PhabricatorCalendarEventTransaction()) ->setTransactionType( PhabricatorCalendarEventTransaction::TYPE_RECURRING) @@ -210,7 +210,7 @@ final class PhabricatorCalendarEventEditController } } - if (($is_parent && $this->isCreate()) || !$is_parent) { + if (($is_recurring && $this->isCreate()) || !$is_parent) { $xactions[] = id(new PhabricatorCalendarEventTransaction()) ->setTransactionType( PhabricatorCalendarEventTransaction::TYPE_ALL_DAY)