Skip to content

Commit

Permalink
fix child table field wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
klahap committed May 23, 2024
1 parent 75412ba commit fb24116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frappe/desk/reportview.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ def update_wildcard_field_param(data):
if (isinstance(data.fields, str) and data.fields == "*") or (
isinstance(data.fields, list | tuple) and len(data.fields) == 1 and data.fields[0] == "*"
):
data.fields = get_permitted_fields(data.doctype, parenttype=data.parenttype)
parent_type = data.parenttype or data.parent_doctype
data.fields = get_permitted_fields(data.doctype, parenttype=parent_type)
return True

return False
Expand Down

0 comments on commit fb24116

Please sign in to comment.