From 886def0a69afa97b7f275d35651437418df74c87 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 22 Jul 2015 14:43:17 +0530 Subject: [PATCH] [fix] convert Item and Item Grid images to absolute urls --- erpnext/templates/includes/macros.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/templates/includes/macros.html b/erpnext/templates/includes/macros.html index 0967e97138d..6748a5ebd29 100644 --- a/erpnext/templates/includes/macros.html +++ b/erpnext/templates/includes/macros.html @@ -1,6 +1,6 @@ {% macro product_image_square(website_image, css_class="") %}
+ {% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" {%- endif %}> {% if not website_image -%}{%- endif %}
{% endmacro %} @@ -8,7 +8,7 @@ {% macro product_image(website_image, css_class="") %}
{% if website_image -%} - + {%- else -%} {%- endif %}