Skip to content

Commit

Permalink
Fix bug in inventory management page where permissions to change exis…
Browse files Browse the repository at this point in the history
…ting variant overrides of deleted products are checked. This commit simply make the inventory page ignore variant overrides of deleted products
  • Loading branch information
luisramos0 committed Oct 19, 2018
1 parent 590091c commit b6ad422
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/admin/variant_overrides_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def load_collection

def collection
@variant_overrides = VariantOverride.for_hubs(params[:hub_id] || @hubs)
.includes(:variant).where(spree_variants: { deleted_at: nil })
end

def collection_actions
Expand Down

0 comments on commit b6ad422

Please sign in to comment.