Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15425197
D12638.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D12638.id.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
@@ -10,7 +10,6 @@
$nav->addLabel(pht('Calendar'));
$nav->addFilter('/', pht('My Events'));
$nav->addFilter('all/', pht('View All'));
- $nav->addFilter('event/create/', pht('Create Event'));
if ($status && $status->getID()) {
$nav->addFilter('event/edit/'.$status->getID().'/', pht('Edit Event'));
diff --git a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
--- a/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
+++ b/src/applications/calendar/controller/PhabricatorCalendarEventEditController.php
@@ -37,7 +37,6 @@
$end_value = $end_time->readValueFromRequest($request);
$start_value = $start_time->readValueFromRequest($request);
$submit_label = pht('Create');
- $filter = 'event/create/';
$page_title = pht('Create Event');
$redirect = 'created';
$subscribers = array();
@@ -59,9 +58,7 @@
$end_time->setValue($event->getDateTo());
$start_time->setValue($event->getDateFrom());
$submit_label = pht('Update');
- $filter = 'event/edit/'.$event->getID().'/';
$page_title = pht('Update Event');
- $redirect = 'updated';
$subscribers = PhabricatorSubscribersQuery::loadSubscribersForPHID(
$event->getPHID());
@@ -245,9 +242,6 @@
->setFormErrors($errors)
->setForm($form);
- $nav = $this->buildSideNavView($event);
- $nav->selectFilter($filter);
-
$crumbs = $this->buildApplicationCrumbs();
if (!$this->isCreate()) {
@@ -261,14 +255,11 @@
->setValidationException($validation_exception)
->appendChild($form);
- $nav->appendChild(
+ return $this->buildApplicationPage(
array(
$crumbs,
$object_box,
- ));
-
- return $this->buildApplicationPage(
- $nav,
+ ),
array(
'title' => $page_title,
));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 24, 3:08 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7416700
Default Alt Text
D12638.id.diff (2 KB)
Attached To
Mode
D12638: Left nav should no longer offer to create Calendar event and create event page should no longer show left nav.
Attached
Detach File
Event Timeline
Log In to Comment