Changeset View
Changeset View
Standalone View
Standalone View
src/applications/passphrase/query/PassphraseCredentialQuery.php
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | if ($this->needSecrets) { | ||||
| } else if (isset($secrets[$secret_id])) { | } else if (isset($secrets[$secret_id])) { | ||||
| $credential->attachSecret($secrets[$secret_id]); | $credential->attachSecret($secrets[$secret_id]); | ||||
| } else { | } else { | ||||
| unset($page[$key]); | unset($page[$key]); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| foreach ($page as $key => $credential) { | |||||
| $type = PassphraseCredentialType::getTypeByConstant( | |||||
| $credential->getCredentialType()); | |||||
| if (!$type) { | |||||
| unset($page[$key]); | |||||
| continue; | |||||
| } | |||||
| $credential->attachImplementation(clone $type); | |||||
| } | |||||
| return $page; | return $page; | ||||
| } | } | ||||
| protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) { | ||||
| $where = parent::buildWhereClauseParts($conn); | $where = parent::buildWhereClauseParts($conn); | ||||
| if ($this->ids !== null) { | if ($this->ids !== null) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||