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:
parent
fec7c3b3ee
commit
eb28fc2e3c
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue