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 <ankushmenat@gmail.com>
This commit is contained in:
Maharshi Patel 2023-10-12 08:42:42 +05:30 committed by GitHub
parent d80e0a10df
commit e888e49cc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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