Skip to content

Commit

Permalink
FRW-8594 Fixed Dynamic Store ON/OFF mode inconsistencies. (#11006)
Browse files Browse the repository at this point in the history
FRW-8594 Fixed Dynamic Store ON/OFF mode inconsistencies.
  • Loading branch information
dimitriyTsemma authored Aug 2, 2024
1 parent 66dc971 commit 5d7f08e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions src/Spryker/Zed/Customer/Communication/Form/CustomerForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,6 @@ protected function addPhoneField(FormBuilderInterface $builder)
*/
protected function addStoreField(FormBuilderInterface $builder, array $choices)
{
if (!$this->getFactory()->getStoreFacade()->isDynamicStoreEnabled()) {
return $this;
}

$builder->add(static::FIELD_STORE_NAME, ChoiceType::class, [
'label' => 'Store',
'placeholder' => 'Select one',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
*/
protected function addStoreField(FormBuilderInterface $builder, array $choices)
{
if (!$this->getFactory()->getStoreFacade()->isDynamicStoreEnabled()) {
return $this;
}

$builder->add(static::FIELD_STORE_NAME, ChoiceType::class, [
'label' => 'Store',
'placeholder' => 'Select one',
Expand Down
15 changes: 0 additions & 15 deletions src/Spryker/Zed/Customer/CustomerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

use Generated\Shared\Transfer\SequenceNumberSettingsTransfer;
use Spryker\Shared\Customer\CustomerConstants;
use Spryker\Shared\Kernel\Store;
use Spryker\Shared\SequenceNumber\SequenceNumberConstants;
use Spryker\Zed\Kernel\AbstractBundleConfig;

Expand Down Expand Up @@ -200,10 +199,6 @@ public function getRegisterConfirmTokenUrl($token, ?string $storeName = null): s
*/
public function getCustomerReferenceDefaults(?string $sequenceNumberPrefix = null)
{
if (!$sequenceNumberPrefix) {
$storeName = $this->getStoreName();
}

$sequenceNumberSettingsTransfer = new SequenceNumberSettingsTransfer();

$sequenceNumberSettingsTransfer->setName(CustomerConstants::NAME_CUSTOMER_REFERENCE);
Expand Down Expand Up @@ -367,14 +362,4 @@ protected function getUniqueIdentifierSeparator()
{
return '-';
}

/**
* @deprecated Will be removed in the next major without replacement.
*
* @return string
*/
protected function getStoreName(): string
{
return Store::getInstance()->getStoreName();
}
}

0 comments on commit 5d7f08e

Please sign in to comment.