Skip to content

Commit

Permalink
Correct the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Radomir98 committed Sep 18, 2024
1 parent 81049bf commit 9d4f8a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Struct/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ public function initializeBySalesChannel(SalesChannelContext $salesChannelContex
{
$salesChannel = $salesChannelContext->getSalesChannel();
$salesChannelId = $salesChannel->getId();
$languageId = $salesChannel->getLanguageId();
if (!$languageId = $salesChannelContext->getLanguageId()) {
$languageId = $salesChannel->getId();
}

$this->active = $this->getConfig($salesChannelId, $languageId, 'FinSearch.config.active', false);
$this->shopkey = $this->getConfig($salesChannelId, $languageId, 'FinSearch.config.shopkey');
Expand Down

0 comments on commit 9d4f8a6

Please sign in to comment.