Create button should be a dropdown with public and private options

Summary: Ref T8026, Create button should be a dropdown with public and private options

Test Plan: Create both a public and private event. Confirm view policies apply correctly.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T8026

Differential Revision: https://secure.phabricator.com/D13033
This commit is contained in:
lkassianik
2015-05-27 11:11:11 -07:00
parent ebb7ca8cbd
commit 50240eda03
5 changed files with 40 additions and 4 deletions

View File

@@ -29,7 +29,10 @@ final class PhabricatorCalendarEventEditController
$uri_query = $request->getStr('query');
if ($this->isCreate()) {
$event = PhabricatorCalendarEvent::initializeNewCalendarEvent($viewer);
$mode = $request->getStr('mode');
$event = PhabricatorCalendarEvent::initializeNewCalendarEvent(
$viewer,
$mode);
$create_start_year = $request->getInt('year');
$create_start_month = $request->getInt('month');