Skip to content

Commit

Permalink
fix: cast doc name to string while exporting child docs (#21057)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5394e73)
  • Loading branch information
paurosello authored and mergify[bot] committed May 20, 2023
1 parent 00da02b commit e57f420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/core/doctype/data_import/exporter.py
Expand Up @@ -199,7 +199,7 @@ def format_column_name(df):
# Group children data by parent name
grouped_children_data = self.group_children_data_by_parent(child_data)
for doc in parent_data:
related_children_docs = grouped_children_data.get(doc.name, {})
related_children_docs = grouped_children_data.get(str(doc.name), {})
yield {**doc, **related_children_docs}

def add_header(self):
Expand Down

0 comments on commit e57f420

Please sign in to comment.