solidus
solidus copied to clipboard
Exception when adding a variant for a product with no master price
Solidus Version: 3.2.5
To Reproduce
- create a product
- delete the master price in the default currency (config.currency)
- attempt creating a new variant
- see the exception:
undefined method 'attributes' for nil:NilClasspointing to https://github.com/solidusio/solidus/blob/739b2a63cc3079b8256f8b85816a5a3d81689b76/backend/app/controllers/spree/admin/variants_controller.rb#L19
Current behavior
There's an exception.
Expected behavior
A more friendly behavior is expected.
Screenshots