Skip to content

Commit

Permalink
fix: do not rename select field options and values on doctype rename (#…
Browse files Browse the repository at this point in the history
…19223) (#19226)

(cherry picked from commit f667712)

Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com>
  • Loading branch information
mergify[bot] and nextchamp-saqib committed Dec 9, 2022
1 parent 4402f12 commit f511dfc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frappe/model/rename_doc.py
Expand Up @@ -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)

Expand Down

0 comments on commit f511dfc

Please sign in to comment.