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 @@ 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, ); } }