Skip to content

Commit 0fbbee2

Browse files
author
Rohan
committed
fix: allow extending dashboard data in hooks
1 parent 635eac4 commit 0fbbee2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frappe/desk/form/meta.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ def load_dashboard(self):
200200

201201
dashboard_data = self.get_dashboard_data()
202202
for hook in frappe.get_hooks("override_doctype_dashboards", {}).get(self.name, []):
203-
dashboard_data = frappe.get_attr(hook)()
204-
break
203+
dashboard_data = frappe.get_attr(hook)(data=dashboard_data)
205204

206205
self.set('__dashboard', dashboard_data)
207206

0 commit comments

Comments
 (0)