Page MenuHomePhabricator

D16303.id39208.diff
No OneTemporary

D16303.id39208.diff

diff --git a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
@@ -8,7 +8,7 @@
private $rangeBegin;
private $rangeEnd;
private $inviteePHIDs;
- private $creatorPHIDs;
+ private $hostPHIDs;
private $isCancelled;
private $eventsWithNoParent;
private $instanceSequencePairs;
@@ -46,8 +46,8 @@
return $this;
}
- public function withCreatorPHIDs(array $phids) {
- $this->creatorPHIDs = $phids;
+ public function withHostPHIDs(array $phids) {
+ $this->hostPHIDs = $phids;
return $this;
}
@@ -370,11 +370,11 @@
$this->inviteePHIDs);
}
- if ($this->creatorPHIDs) {
+ if ($this->hostPHIDs) {
$where[] = qsprintf(
$conn,
- 'event.userPHID IN (%Ls)',
- $this->creatorPHIDs);
+ 'event.hostPHID IN (%Ls)',
+ $this->hostPHIDs);
}
if ($this->isCancelled !== null) {
diff --git a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
@@ -26,8 +26,9 @@
protected function buildCustomSearchFields() {
return array(
id(new PhabricatorSearchDatasourceField())
- ->setLabel(pht('Created By'))
- ->setKey('creatorPHIDs')
+ ->setLabel(pht('Hosts'))
+ ->setKey('hostPHIDs')
+ ->setAliases(array('host', 'hostPHID', 'hosts'))
->setDatasource(new PhabricatorPeopleUserFunctionDatasource()),
id(new PhabricatorSearchDatasourceField())
->setLabel(pht('Invited'))
@@ -78,8 +79,8 @@
$query = $this->newQuery();
$viewer = $this->requireViewer();
- if ($map['creatorPHIDs']) {
- $query->withCreatorPHIDs($map['creatorPHIDs']);
+ if ($map['hostPHIDs']) {
+ $query->withHostPHIDs($map['hostPHIDs']);
}
if ($map['invitedPHIDs']) {

File Metadata

Mime Type
text/plain
Expires
Wed, May 22, 10:27 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6300152
Default Alt Text
D16303.id39208.diff (2 KB)

Event Timeline