Page MenuHomePhabricator

D21626.id51474.diff
No OneTemporary

D21626.id51474.diff

diff --git a/src/applications/almanac/storage/AlmanacDevice.php b/src/applications/almanac/storage/AlmanacDevice.php
--- a/src/applications/almanac/storage/AlmanacDevice.php
+++ b/src/applications/almanac/storage/AlmanacDevice.php
@@ -49,8 +49,8 @@
) + parent::getConfiguration();
}
- public function generatePHID() {
- return PhabricatorPHID::generateNewPHID(AlmanacDevicePHIDType::TYPECONST);
+ public function getPHIDType() {
+ return AlmanacDevicePHIDType::TYPECONST;
}
public function save() {
@@ -62,7 +62,9 @@
}
public function getURI() {
- return '/almanac/device/view/'.$this->getName().'/';
+ return urisprintf(
+ '/almanac/device/view/%s/',
+ $this->getName());
}
public function rebuildClusterBindingStatus() {
@@ -84,8 +86,8 @@
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
queryfx(
$this->establishConnection('w'),
- 'UPDATE %T SET isBoundToClusterService = %d WHERE id = %d',
- $this->getTableName(),
+ 'UPDATE %R SET isBoundToClusterService = %d WHERE id = %d',
+ $this,
$this->getIsBoundToClusterService(),
$this->getID());
unset($unguarded);

File Metadata

Mime Type
text/plain
Expires
May 22 2024, 2:46 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6305943
Default Alt Text
D21626.id51474.diff (1 KB)

Event Timeline