Skip to content

Commit 393f695

Browse files
authored
🐛 Rename variable
Fix variable name, the search engine has nothing to do with a default country in here
1 parent 3c5ff49 commit 393f695

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/CatalogSearch/Model/Adminhtml/System/Config/Backend

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogSearch/Model/Adminhtml/System/Config/Backend/Engine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public function beforeSave()
6161
parent::beforeSave();
6262
$value = (string)$this->getValue();
6363
if (empty($value)) {
64-
$defaultCountry = $this->engineResolver->getCurrentSearchEngine();
65-
$this->setValue($defaultCountry);
64+
$searchEngine = $this->engineResolver->getCurrentSearchEngine();
65+
$this->setValue($searchEngine);
6666
}
6767
return $this;
6868
}

0 commit comments

Comments
 (0)