Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14115672
D21626.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21626.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D21626: Make minor Almanac device modernization updates
Attached
Detach File
Event Timeline
Log In to Comment