pickware / shopware

Shopware Repository
http://www.shopware.com
Other
0 stars 0 forks source link

Backend Login with user that doesn't have a default language set removes snippets #60

Open maximilianzachow opened 6 years ago

maximilianzachow commented 6 years ago

Currently, you can create a user account without any default language set. When you access the backend with that user account afterwards a lot of our snippets don't appear anymore as you can see in the following screenshot (source: waffenfuzzi.de).

snippets

You can only reset them with the console command bin/console sw:snippets:to:db --include-plugins which is not the best way.

@antoniokupresak told me that @fixpunkt has some further information about how that behaviour is caused by the empty field of the default language. Probably it should be forbidden to create a user when no default language is set.

antoniokupresak commented 6 years ago

Here's @fixpunkt's comment regarding the user locales https://github.com/VIISON/ShopwarePickwareERP/issues/511#issuecomment-316053660

fixpunkt commented 6 years ago

Good Job finding this repro case!

We should make a PR for this.

fixpunkt commented 6 years ago

During RefactoringFest, we moved all plugins which are not shipping adapters to use Smarty-less backend apps, which do a proper language fall-back. Because of this, making a PR to fix the underlying Shopware issue is not a priority for us.