Fall back to empty string for product regular price

i think this avoids a bug when a product has no regular price but does
have a current price
This commit is contained in:
Lance Edgar 2021-11-08 13:15:10 -06:00
parent fec7c3b3ee
commit eb28fc2e3c

View file

@ -479,7 +479,7 @@ class ProductView(MasterView):
return self.handler.render_price(price) return self.handler.render_price(price)
def render_current_price_for_grid(self, product, field): def render_current_price_for_grid(self, product, field):
text = self.render_price(product, field) text = self.render_price(product, field) or ""
price = product.current_price price = product.current_price
if price: if price: