diff --git a/frappe/templates/includes/breadcrumbs.html b/frappe/templates/includes/breadcrumbs.html index 3303f44677..19ee65db81 100644 --- a/frappe/templates/includes/breadcrumbs.html +++ b/frappe/templates/includes/breadcrumbs.html @@ -1,4 +1,4 @@ -{% set parents = doc.get_parents() if (doc and hasattr(doc, "get_parents")) else [] %} +{% set parents = doc.parents or [] %}