We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unable to create a new order with a line item with options. This is the issue/motivation behind #1112.
To reproduce:
Start by permitting a new option on to permitted on a line item:
PermittedAttributes.line_item_attributes << :some_option
Now each of the requests should create the line item with some_option set to 4:
To OrdersController#create
{ order: { line_items: [variant_id: 1, quantity:1, options: { some_option: 4 } ] } }
To LineItemsController#create
{ line_item: variant_id: 1, quantity:1, options: { some_option: 4 } }
However, the OrdersController fails to permit the option.
The text was updated successfully, but these errors were encountered:
Working on it 👷
Sorry, something went wrong.
This was fixed by @gus4no
No branches or pull requests
Unable to create a new order with a line item with options. This is the issue/motivation behind #1112.
To reproduce:
Start by permitting a new option on to permitted on a line item:
Now each of the requests should create the line item with some_option set to 4:
To OrdersController#create
To LineItemsController#create
However, the OrdersController fails to permit the option.
The text was updated successfully, but these errors were encountered: