-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Admin] - 2nd Option Type is lost, can't add to existing product #5751
Comments
This same problem happens in our freshly-built solidus 4.3.4 & rails 7.1.3.2 project when we try to add multiple taxons.
Thank you! |
As reported in solidusio#5751, the new admin UI has a bug with the option type selectors: only one option type can be added. We narrowed this down to an issue handling option type params in the new admin products controller. We noticed legacy controller contains a before action to handle the incoming option type params, but the new one did not. Re-adding the before action solves the bug. This is required because the form input for option types contains comma separated values within a string: `<input value="1,2"type="hidden">` Co-authored-by: An Stewart <[email protected]>
As reported in solidusio#5751, the new admin UI has a bug with the option type selectors: only one option type can be added. We narrowed this down to an issue handling option type params in the new admin products controller. We noticed legacy controller contains a before action to handle the incoming option type params, but the new one did not. Re-adding the before action solves the bug. This is required because the form input for option types contains comma separated values within a string: `<input value="1,2" type="hidden">` Co-authored-by: An Stewart <[email protected]>
Hey folks, I believe this issue is fixed in #5816. I'm hoping it will get merged relatively soon so folks can test it easier, but feel free to pull my branch to test. |
As reported in solidusio#5751, the new admin UI has a bug with the option type selectors: only one option type can be added. We narrowed this down to an issue handling option type params in the new admin products controller. We noticed legacy controller contains a before action to handle the incoming option type params, but the new one did not. Re-adding the before action solves the bug. This is required because the form input for option types contains comma separated values within a string: `<input value="1,2" type="hidden">` Co-authored-by: An Stewart <[email protected]> Co-authored-by: Kendra Chateau <[email protected]>
Hey @adomokos, hope you are well. This change got merged into main. Are you able to test and confirm if this fixes the bug? |
Sure thing. It's kinda hard for me to test it, so I am going to 👍 for you. |
Solidus Version:
4.3.4
To Reproduce
Create a product in the new Solidus Admin, assigning two Option Types works. Don't change anything on the Product form, click update and the 2nd Option Type is removed. When I try to add it back, it's not persisted.
Current behavior
The 2nd Option Type is removed (lost) when I edit the product.
Expected behavior
The 2nd Option Type should be kept when I edit the product. I should also be able to add the 2nd Option Type.
Screenshots
solidus-admin-option-type-not-saved.mov
Desktop (please complete the following information):
Additional context
Legacy admin works as a workaround.
Rails logs:
The text was updated successfully, but these errors were encountered: