fix(DocRename): on rename ignore link validation when updating values in single doctype
This commit is contained in:
parent
9208b58b6f
commit
87ef74bb7e
1 changed files with 1 additions and 0 deletions
|
|
@ -434,6 +434,7 @@ def update_link_field_values(link_fields: list[dict], old: str, new: str, doctyp
|
|||
# update single docs using ORM rather then query
|
||||
# as single docs also sometimes sets defaults!
|
||||
single_doc.flags.ignore_mandatory = True
|
||||
single_doc.flags.ignore_links = True
|
||||
single_doc.save(ignore_permissions=True)
|
||||
except ImportError:
|
||||
# fails in patches where the doctype has been renamed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue