We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa8e686 + 01e54fe commit 12f00d6Copy full SHA for 12f00d6
core/app/models/spree/stock_item.rb
@@ -106,7 +106,7 @@ def conditional_variant_touch
106
def should_touch_variant?
107
# the variant_id changes from nil when a new stock location is added
108
inventory_cache_threshold &&
109
- (saved_change_to_count_on_hand&.any? { |cache| cache < inventory_cache_threshold }) ||
+ saved_change_to_count_on_hand&.any? { |cache| cache < inventory_cache_threshold } ||
110
saved_change_to_variant_id?
111
end
112
0 commit comments