Skip to content

Commit

Permalink
fix: dont stop next unattached file from being attached if file_url o…
Browse files Browse the repository at this point in the history
…f first file is invalid

(cherry picked from commit 04f8d23)
  • Loading branch information
anandbaburajan authored and mergify[bot] committed Dec 7, 2023
1 parent 394fd77 commit e6dacf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/core/doctype/file/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def attach_files_to_document(doc: "Document", event) -> None:
# we dont want the update to fail if file cannot be attached for some reason
value = doc.get(df.fieldname)
if not (value or "").startswith(("/files", "/private/files")):
return
continue

if frappe.db.exists(
"File",
Expand Down

0 comments on commit e6dacf0

Please sign in to comment.