Merge pull request #29953 from marination/heart-icon-and-shop-by-category

chore: Adjust heart icon to v14 icons in frappe (make consistent with v13) & misc fix
This commit is contained in:
Marica
2022-02-23 13:01:30 +05:30
committed by GitHub
3 changed files with 7 additions and 8 deletions

View File

@@ -62,8 +62,7 @@ def get_category_records(categories):
"parent_item_group": "All Item Groups",
"show_in_website": 1
},
fields=["name", "parent_item_group", "is_group", "image", "route"],
as_dict=True
fields=["name", "parent_item_group", "is_group", "image", "route"]
)
else:
doctype = frappe.unscrub(category)
@@ -71,7 +70,7 @@ def get_category_records(categories):
if frappe.get_meta(doctype, cached=True).get_field("image"):
fields += ["image"]
categorical_data[category] = frappe.db.get_all(doctype, fields=fields, as_dict=True)
categorical_data[category] = frappe.db.get_all(doctype, fields=fields)
return categorical_data