diff --git a/src/applications/passphrase/storage/PassphraseCredential.php b/src/applications/passphrase/storage/PassphraseCredential.php index 8dc8de2fe4..20d2437094 100644 --- a/src/applications/passphrase/storage/PassphraseCredential.php +++ b/src/applications/passphrase/storage/PassphraseCredential.php @@ -1,7 +1,8 @@ openTransaction(); + $secrets = id(new PassphraseSecret())->loadAllWhere( + 'id = %d', + $this->getSecretID()); + foreach ($secrets as $secret) { + $secret->delete(); + } + $this->delete(); + $this->saveTransaction(); + } } diff --git a/src/applications/system/interface/PhabricatorDestructibleInterface.php b/src/applications/system/interface/PhabricatorDestructibleInterface.php index 3b69f87c3a..08ee240529 100644 --- a/src/applications/system/interface/PhabricatorDestructibleInterface.php +++ b/src/applications/system/interface/PhabricatorDestructibleInterface.php @@ -11,7 +11,7 @@ interface PhabricatorDestructibleInterface { // TEMPLATE IMPLEMENTATION ///////////////////////////////////////////////////// -/* -( PhabricatorDestructableInterface )----------------------------------- */ +/* -( PhabricatorDestructibleInterface )----------------------------------- */ /* public function destroyObjectPermanently(