Skip to content

Commit

Permalink
Fix is_active has been called with wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Oct 21, 2019
1 parent c22275b commit deff619
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def get_choice(self):
return (self.identifier, _("Postal shipping"))

def add_extra_cart_row(self, cart, request):
if not self.is_active(cart) and len(cart_modifiers_pool.get_shipping_modifiers()) > 1:
if not self.is_active(cart.extra.get('shipping_modifier')) and len(cart_modifiers_pool.get_shipping_modifiers()) > 1:
return
# add a shipping flat fee
amount = Money('5')
Expand Down

0 comments on commit deff619

Please sign in to comment.