Multiple prepareStoreView
calls overwrites existing store-view config incorrectly
#3655
Closed
2 of 5 tasks
Labels
Milestone
Current behavior
If the
prepareStoreView
method is called multiple times after another, it overwrites the existing config with a plain store object if usingextend
to extend the current store.After the first call, the
extend
property of theStoreView
object is gone and then thegetExtendedStoreviewConfig
method merges wrong configs on second run.This happens for example since in the new search adapter
core/lib/search/adapter/api/searchAdapter.ts:42
when it callsprepareStoreView
method the second time.It seems that it is caused by
delete storeView.extend
in thegetExtendedStoreviewConfig
method. If I remove this line, everything works as expected.Expected behavior
Show the correctly extended store view config, no matter how often it is prepared.
Steps to reproduce the issue
extend
on a store-viewprepareStoreView
methodextend
configcore/lib/search/adapter/api/searchAdapter.ts
, it's a plain one without theextend
config value so it can't extend the configs correctly anymoreRepository
develop:latest 8e36289
Can you handle fixing this bug by yourself?
Which Release Cycle state this refers to? Info for developer.
Pick one option.
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
.release
branch and create Pull Request3. Stabilisation fix
back torelease
.hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.Environment details
The text was updated successfully, but these errors were encountered: