Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15448064
D13309.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13309.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 29, 3:11 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7309421
Default Alt Text
D13309.diff (1 KB)
Attached To
Mode
D13309: First pass at event modal create options.
Attached
Detach File
Event Timeline
Log In to Comment