Merge pull request #9757 from mbauskar/breadcrumb-fixes
[hotfix] check if the item group exist or not
This commit is contained in:
commit
68ed0488a3
@ -147,6 +147,7 @@ def invalidate_cache_for(doc, item_group=None):
|
|||||||
item_group = doc.name
|
item_group = doc.name
|
||||||
|
|
||||||
for d in get_parent_item_groups(item_group):
|
for d in get_parent_item_groups(item_group):
|
||||||
d = frappe.get_doc("Item Group", d.name)
|
if frappe.db.exists("Item Group", d.get("name")):
|
||||||
if d.route:
|
d = frappe.get_doc("Item Group", d.get("name"))
|
||||||
clear_cache(d.route)
|
if d.route:
|
||||||
|
clear_cache(d.route)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user