From e888e49cc2e494efe8cea07e1ddcefaa8ab4fe4a Mon Sep 17 00:00:00 2001 From: Maharshi Patel <39730881+maharshivpatel@users.noreply.github.com> Date: Thu, 12 Oct 2023 08:42:42 +0530 Subject: [PATCH] fix: don't update unnecessary fields removed attached_to_doctype and attached_to_field from set_value as those are not required. Co-authored-by: Ankush Menat --- frappe/core/doctype/file/utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/frappe/core/doctype/file/utils.py b/frappe/core/doctype/file/utils.py index 035e0730b2..56c7dfd33f 100644 --- a/frappe/core/doctype/file/utils.py +++ b/frappe/core/doctype/file/utils.py @@ -385,8 +385,6 @@ def relink_files(doc, fieldname, temp_doc_name): mislinked_file, field={ "attached_to_name": doc.name, - "attached_to_doctype": doc.doctype, - "attached_to_field": fieldname, }, ) return