Skip to content

Commit

Permalink
fix: dont stop next unattached file from being unattached
Browse files Browse the repository at this point in the history
(cherry picked from commit 638c9ea)
  • Loading branch information
anandbaburajan authored and mergify[bot] committed Dec 7, 2023
1 parent 0c4288d commit 394fd77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/core/doctype/file/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def attach_files_to_document(doc: "Document", event) -> None:
"attached_to_field": df.fieldname,
},
):
return
continue

unattached_file = frappe.db.exists(
"File",
Expand All @@ -340,7 +340,7 @@ def attach_files_to_document(doc: "Document", event) -> None:
"is_private": cint(value.startswith("/private")),
},
)
return
continue

file: "File" = frappe.get_doc(
doctype="File",
Expand Down

0 comments on commit 394fd77

Please sign in to comment.