Page MenuHomePhabricator

D21626.diff
No OneTemporary

D21626.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
Fri, Nov 29, 12:16 PM (3 h, 39 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6805336
Default Alt Text
D21626.diff (1 KB)

Event Timeline