Skip to content

Commit

Permalink
fix: trial balance report freezes when adding filters (backport #37264)…
Browse files Browse the repository at this point in the history
… (#37267)

fix: trial balance report freezes when adding filters (#37264)

fix: Only add onclick if correct data is returned

workaround for frappe/datatable#177

(cherry picked from commit 2dc95e5)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush authored Sep 27, 2023
1 parent b6dc47e commit ff6b38c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erpnext/public/js/financial_statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ erpnext.financial_statements = {
if (data && column.fieldname=="account") {
value = data.account_name || value;

column.link_onclick =
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(data) + ")";
if (data.account) {
column.link_onclick =
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(data) + ")";
}
column.is_tree = true;
}

Expand Down

0 comments on commit ff6b38c

Please sign in to comment.