New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multistore - It is possible to select a default language for a shop that does not belong to the shop #30171
Comments
Hello @lmeyer1 For the bug 1), I have reproduced the issue only in BO Screen.Recording.2022-10-31.at.15.30.31.movIn FO, the languages are the correct one for each shop. For the bug 2), I'm not sure I understand well what I'm supposed to do. I've tried to deselect the language for a specific shop and I have a warning: Could you send a screen record of your case please ? Waiting for your feedback! |
This is what I expected. I don't know why I didn't get that error. I'm installing a clean PrestaShop using Docker, the I will be able to test these bugs in a neutral reproductible environment and not on my production server. |
@PrestaShop/qa-functional , Could someone with Docker env try to reproduce this issue ? 🙏 |
Hello @florine2623
It is not related to the default shop, but it shows up, because Prestashop requires that at least one shop is checked. This why I added in the Setup, point 5:
With this additional detail, you should be able to reproduce the issue without recurring to docker. |
Hello @lmeyer1 Thanks for your feedback. 30171.mp4What do you think? Thank You! |
Hello Hana,
IMHO, This is enough to show that there is a bug. The |
Hello @lmeyer1 Thanks for your feedback. It may be fixed on 8.0.0. PS1778 : NOK ❌ 1778.7.mp4PS1787 : NOK ❌ 199459833-07afc8a6-5fca-412b-b5cc-f7721907b3d8.mp4PS8.0.0 : OK ✔️ 8.0.0.mp4Could you please check again? Thank You! |
Hello @lmeyer1 Closing the issue as it's not reproducible on 8.0.0 🎉 Thanks! |
Prerequisites
Describe the bug and add screenshots
It is possible to select a default language for a shop that does not belong to the shop.
When selecting the wrong language as default language, it is added to the languages for the shop.
On the other hand, it is possible to remove the default language from the shop. The default language setting is not affected.
Expected behavior
It should not be possible to select a language as default language, that is not active in the current shop.
It should not be possible to remove the default language from a shop
Steps to reproduce
Given an environment with more than one language and more than one shop.
Setup
Shop A
toFrench shop
French shop
in the dropdown listFrench shop
. In the shop association for GermanFrench shop
must not be checked (but at least one other shop must be checked).Reproduce bug 1)
http://localhost:8017/shop-a
Default language
. Notice, that we can change all active languages, even the one that does not belong toFrench shop
.French shop
is now selectedReproduce bug 2)
Currently
French shop
has both languagesFrench
andGerman
, andGerman
is the default language.German
's row. DeselectFrench Shop
and save. (This should not be possible, sinceGerman
is the default language).PS_LANG_DEFAULT
for `French Shop. You will find it still pointing to language 2 (German).German
is still the default language.PrestaShop version(s) where the bug happened
1.7.8.7
PHP version(s) where the bug happened
7.4
If your bug is related to a module, specify its name and its version
No response
The text was updated successfully, but these errors were encountered: