Merge pull request #2901 from luisramos0/variants_including_master

[Spree Upgrade] Adapt product_decorator code to spree 2 with new variants_including_master
This commit is contained in:
Pau Pérez Fabregat
2018-11-02 15:48:19 +01:00
committed by GitHub

View File

@@ -215,7 +215,7 @@ Spree::Product.class_eval do
self.supplier.touch
touch_distributors
ExchangeVariant.where('exchange_variants.variant_id IN (?)', self.variants_including_master_and_deleted).destroy_all
ExchangeVariant.where('exchange_variants.variant_id IN (?)', self.variants_including_master.with_deleted).destroy_all
delete_without_delete_from_order_cycles
end