mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
hotfix: website_image
This commit is contained in:
@@ -82,7 +82,7 @@ def get_child_groups(item_group_name):
|
|||||||
def get_item_for_list_in_html(context):
|
def get_item_for_list_in_html(context):
|
||||||
# add missing absolute link in files
|
# add missing absolute link in files
|
||||||
# user may forget it during upload
|
# user may forget it during upload
|
||||||
if context.get("website_image", "").startswith("files/"):
|
if (context.get("website_image") or "").startswith("files/"):
|
||||||
context["website_image"] = "/" + context["website_image"]
|
context["website_image"] = "/" + context["website_image"]
|
||||||
return frappe.get_template("templates/includes/product_in_grid.html").render(context)
|
return frappe.get_template("templates/includes/product_in_grid.html").render(context)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user