Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/almanac/engineextension/AlmanacBindingsSearchEngineAttachment.php b/src/applications/almanac/engineextension/AlmanacBindingsSearchEngineAttachment.php
index c4f6b823ee..903d85e564 100644
--- a/src/applications/almanac/engineextension/AlmanacBindingsSearchEngineAttachment.php
+++ b/src/applications/almanac/engineextension/AlmanacBindingsSearchEngineAttachment.php
@@ -1,53 +1,53 @@
<?php
final class AlmanacBindingsSearchEngineAttachment
extends AlmanacSearchEngineAttachment {
private $isActive;
public function setIsActive($is_active) {
$this->isActive = $is_active;
return $this;
}
public function getIsActive() {
return $this->isActive;
}
public function getAttachmentName() {
return pht('Almanac Bindings');
}
public function getAttachmentDescription() {
return pht('Get Almanac bindings for the service.');
}
public function willLoadAttachmentData($query, $spec) {
$query->needProperties(true);
if ($this->getIsActive()) {
- $query->needBindings(true);
- } else {
$query->needActiveBindings(true);
+ } else {
+ $query->needBindings(true);
}
}
public function getAttachmentForObject($object, $data, $spec) {
$bindings = array();
if ($this->getIsActive()) {
$service_bindings = $object->getActiveBindings();
} else {
$service_bindings = $object->getBindings();
}
foreach ($service_bindings as $binding) {
$bindings[] = $this->getAlmanacBindingDictionary($binding);
}
return array(
'bindings' => $bindings,
);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Thu, Jul 3, 1:36 AM (17 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
165209
Default Alt Text
(1 KB)

Event Timeline