fix: remove read-only field validation map_doc (#35757)

This commit is contained in:
Rahul Agrawal 2026-01-20 22:17:12 +05:30 committed by GitHub
parent 42a4319ee7
commit 2df6e92c2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -240,9 +240,6 @@ def map_fetch_fields(target_doc, df, no_copy_fields):
# options should be like "link_fieldname.fieldname_in_liked_doc"
for fetch_df in target_doc.meta.get("fields", {"fetch_from": f"^{df.fieldname}."}):
if not (fetch_df.fieldtype == "Read Only" or fetch_df.read_only):
continue
if (
not target_doc.get(fetch_df.fieldname) or fetch_df.fieldtype == "Read Only"
) and fetch_df.fieldname not in no_copy_fields: