Skip to content

Commit

Permalink
Consider the extension is limited only if number of extended terms is…
Browse files Browse the repository at this point in the history
… greater than 0
  • Loading branch information
romainruaud committed Jan 15, 2025
1 parent 01c1c20 commit ed08f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module-elasticsuite-core/Helper/Autocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public function isExtensionEnabled()
*/
public function isExtensionLimited()
{
return (bool) $this->scopeConfig->isSetFlag(
return (bool) ($this->scopeConfig->isSetFlag(
self::AUTOCOMPLETE_SETTINGS_CONFIG_XML_PREFIX . "/advanced/extension_limited",
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
)) && ($this->getExtensionSize() > 0);
}

/**
Expand Down

0 comments on commit ed08f7c

Please sign in to comment.