Skip to content

Commit

Permalink
Caching error kept leftover core charges
Browse files Browse the repository at this point in the history
  • Loading branch information
jumph4x authored and romul committed Apr 8, 2012
1 parent acdbe6c commit b520598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree_core_charges.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.activate
LineItem.class_eval do

def update_adjustment(adjustment, source)
adjustment.amount = if adjustment.order.line_items.include? source
adjustment.amount = if adjustment.order(true).line_items.include? source
calculate_core_charge
else
0
Expand Down

0 comments on commit b520598

Please sign in to comment.