-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Creating a new variant is selecting the first producer and first category of the dropdown #12666
Comments
Taking this one |
Hello
|
@wandji20 My apologies, I thought we would have set the new admin as default by the time someone pick this one up so I forgot one important info: to reproduce the problem, you need to turn the feature toggle |
Thanks 😃 @RachL I was able to turn on the admin_v3_style.
|
Hi @wandji20 we've introduced a change recently and you can now select different categories and different producers for each variant under the same product.
Because we would need to introduce a check of the previous variants producers and / or categories, and IF they are the same, pre-select these producers and/or categories. This sounded a bit over-thought, that's why I proposed to leave the dropdown blank.
Are you sure it isn't the first producer and the first category of the dropdown instead? That's what I see when I use a user with a lot of producers. 🤔
Yes good idea! |
Yes, you are right it will set the producer and category to the first element in the dropdown list. This is because these dropdowns don't have an empty state and so will select the first item on the list. My suggestion will be to disable this assignment and allow the user to always select a producer and category when creating a new variant |
@wandji20 sounds good to me, many thanks! |
Hi |
Use openfoodfoundation/wishlist#520 Flower Farms code in clokify
Description
Since we move the producer and the category to the variant, when creating a new variant in
admin/products
, the first producer of the user and the first category are selected by default. If the users act fast, they might create the variant with the wrong producer.We need to leave the dropdown empty by default (which is the case on
/admin/products/XXXX/variants/new
)Steps to Reproduce
admin/products
with a user who has access to several producersAnimated Gif/Screenshot
Workaround
Select a different one.
Severity
bug-s3: a feature is broken but there is a workaround
Your Environment
The text was updated successfully, but these errors were encountered: