fix: do not rename select field options and values on doctype rename (#19223)

This commit is contained in:
Saqib Ansari 2022-12-09 16:36:58 +05:30 committed by GitHub
parent ec3f705e4f
commit f6677125d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,11 +390,6 @@ def rename_doctype(doctype: str, old: str, new: str) -> None:
for fieldtype in fields_with_options:
update_options_for_fieldtype(fieldtype, old, new)
# change options where select options are hardcoded i.e. listed
select_fields = get_select_fields(old, new)
update_link_field_values(select_fields, old, new, doctype)
update_select_field_values(old, new)
# change parenttype for fieldtype Table
update_parenttype_values(old, new)