Skip to content

Commit

Permalink
Fix unset store path when custom is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 authored Apr 12, 2024
1 parent ae128f9 commit a51b5a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public function getStorePathType(): PathType

public function isUnsetSingleStorePath(): bool
{
return $this->scopeConfig->isSetFlag(self::CONFIG_PATH_UNSET_SINGLE_STORE_PATH);
return $this->scopeConfig->isSetFlag(self::CONFIG_PATH_UNSET_SINGLE_STORE_PATH)
&& $this->getStorePathType() !== PathType::Custom;
}

public function getCountry(StoreInterface $store): string
Expand Down

0 comments on commit a51b5a8

Please sign in to comment.