mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
fixing unloaded object handles for project member changes in feed view
Summary: Fixes T2688 Test Plan: verified proper display in `/feed/` and activity streams Reviewers: epriestley, nevogd Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2688 Differential Revision: https://secure.phabricator.com/D5279
This commit is contained in:
parent
1797e51428
commit
e6c73a8396
1 changed files with 15 additions and 0 deletions
|
@ -6,6 +6,21 @@ final class PhabricatorFeedStoryProject extends PhabricatorFeedStory {
|
|||
return $this->getValue('projectPHID');
|
||||
}
|
||||
|
||||
public function getRequiredHandlePHIDs() {
|
||||
$req_phids = array();
|
||||
$data = $this->getStoryData();
|
||||
switch ($data->getValue('type')) {
|
||||
case PhabricatorProjectTransactionType::TYPE_MEMBERS:
|
||||
$old = $data->getValue('old');
|
||||
$new = $data->getValue('new');
|
||||
$add = array_diff($new, $old);
|
||||
$rem = array_diff($old, $new);
|
||||
$req_phids = array_merge($add, $rem);
|
||||
break;
|
||||
}
|
||||
return array_merge($req_phids, parent::getRequiredHandlePHIDs());
|
||||
}
|
||||
|
||||
public function renderView() {
|
||||
$data = $this->getStoryData();
|
||||
|
||||
|
|
Loading…
Reference in a new issue