Page MenuHomePhabricator

D13309.id.diff
No OneTemporary

D13309.id.diff

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())

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 4, 7:41 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7309421
Default Alt Text
D13309.id.diff (1 KB)

Event Timeline