Closed hefan closed 5 years ago
I am able to replicate this issue - planning on taking a look at it later today.
Fix for this in #2840 pending review.
@kennyadsl can this issue be closed now that you have merged #2840?
Sure, thanks for pointing out!
When you create a product and try to add more than one taxon_id or more than one option_type_id only the first one is saved.
During Update it works as it should.
Steps to reproduce
Create a new product and add more than one option_type_id or taxon_id to it. Click Create.
Expected behavior
The new Product should be created with more than one option type or taxon assigned
Actual behavior
Only the first option type or taxon is assigned. you need to assign the rest by updating the product again.
System configuration
Solidus Version: v2.6.0
Extensions in use:
Possible Solution
Just Split the taxon_ids and option_type_ids params similar like in the update function: https://github.com/solidusio/solidus/blob/master/backend/app/controllers/spree/admin/products_controller.rb
Something like: