diff --git a/src/applications/calendar/controller/PhabricatorCalendarController.php b/src/applications/calendar/controller/PhabricatorCalendarController.php --- a/src/applications/calendar/controller/PhabricatorCalendarController.php +++ b/src/applications/calendar/controller/PhabricatorCalendarController.php @@ -9,12 +9,16 @@ ->setUser($this->getViewer()) ->addAction( id(new PhabricatorActionView()) - ->setName(pht('Create Private Event')) - ->setHref('/calendar/event/create/?mode=private')) + ->setName(pht('Create Event')) + ->setHref('/calendar/event/create/')) ->addAction( id(new PhabricatorActionView()) ->setName(pht('Create Public Event')) - ->setHref('/calendar/event/create/?mode=public')); + ->setHref('/calendar/event/create/?mode=public')) + ->addAction( + id(new PhabricatorActionView()) + ->setName(pht('Create Recurring Event')) + ->setHref('/calendar/event/create/?mode=recurring')); $crumbs->addAction( id(new PHUIListItemView()) diff --git a/src/applications/calendar/storage/PhabricatorCalendarEvent.php b/src/applications/calendar/storage/PhabricatorCalendarEvent.php --- a/src/applications/calendar/storage/PhabricatorCalendarEvent.php +++ b/src/applications/calendar/storage/PhabricatorCalendarEvent.php @@ -50,10 +50,10 @@ if ($mode == 'public') { $view_policy = PhabricatorPolicies::getMostOpenPolicy(); - } else if ($mode == 'recurring') { + } + + if ($mode == 'recurring') { $is_recurring = true; - } else { - $view_policy = $actor->getPHID(); } return id(new PhabricatorCalendarEvent())