Skip to content
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

removes :force attribute from params #811

Merged
merged 1 commit into from
Feb 15, 2016

Conversation

ajkamel
Copy link
Contributor

@ajkamel ajkamel commented Feb 9, 2016

This commit addresses #652 where a user was not able to update the
inventory in the admin panel due to #permitted_stock_item_attributes not
including :force as a valid parameter.

I added the attribute :backorderable which allowed our test suite to
pass, however I have concerns that I may be missing something here and
was contemplating whether it would be best to add the attribute in core
or strip out of the param after checking it. I went with stripping it
out of the params.

You can find the reference to attributes here

@@stock_item_attributes = [:variant, :stock_location, :backorderable, :variant_id]

@ajkamel ajkamel closed this Feb 9, 2016
@ajkamel ajkamel reopened this Feb 9, 2016
This commit addresses solidusio#652 where a user was not able to update the
inventory in the admin panel due to #permitted_stock_item_attributes not
including :force as a valid parameter.

I added the attribute `:backorderable` which allowed our test suite to
pass, however I have concerns that I may be missing something here and
was contemplating whether it would be best to add the attribute in core
or strip out of the param after checking it. I went with stripping it
out of the params.

You can find the reference to attributes here
https://github.com/solidusio/solidus/blob/e15ca73e8f7083633343f0678023695a96e24d31/core/lib/spree/permitted_attributes.rb#L94
@jhawthorn
Copy link
Contributor

Looks good to me 👍 Thanks

@cbrunsdon
Copy link
Contributor

Yea, looks good to me too, much appreciated @ajkamel 👍

jhawthorn added a commit that referenced this pull request Feb 15, 2016
@jhawthorn jhawthorn merged commit ef1af12 into solidusio:master Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants