Merge branch 'master' into redesign-2015
This commit is contained in:
@@ -256,7 +256,6 @@ abstract class PhabricatorPolicyAwareQuery extends PhabricatorOffsetPagedQuery {
|
||||
}
|
||||
|
||||
if ($visible) {
|
||||
$this->putObjectsInWorkspace($this->getWorkspaceMapForPage($visible));
|
||||
$visible = $this->didFilterPage($visible);
|
||||
}
|
||||
|
||||
@@ -470,27 +469,6 @@ abstract class PhabricatorPolicyAwareQuery extends PhabricatorOffsetPagedQuery {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Convert a result page to a `<phid, PhabricatorPolicyInterface>` map.
|
||||
*
|
||||
* @param list<PhabricatorPolicyInterface> Objects.
|
||||
* @return map<phid, PhabricatorPolicyInterface> Map of objects which can
|
||||
* be put into the workspace.
|
||||
* @task workspace
|
||||
*/
|
||||
protected function getWorkspaceMapForPage(array $results) {
|
||||
$map = array();
|
||||
foreach ($results as $result) {
|
||||
$phid = $result->getPHID();
|
||||
if ($phid !== null) {
|
||||
$map[$phid] = $result;
|
||||
}
|
||||
}
|
||||
|
||||
return $map;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Mark PHIDs as in flight.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user