Przeglądaj źródła

Name with accents can be renamed now

version-14
Kanchan Chauhan 9 lat temu
rodzic
commit
55fbc3cbf9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/model/rename_doc.py

+ 1
- 1
frappe/model/rename_doc.py Wyświetl plik

@@ -89,7 +89,7 @@ def rename_parent_and_child(doctype, old, new, meta):


def validate_rename(doctype, new, meta, merge, force, ignore_permissions): def validate_rename(doctype, new, meta, merge, force, ignore_permissions):
# using for update so that it gets locked and someone else cannot edit it while this rename is going on! # using for update so that it gets locked and someone else cannot edit it while this rename is going on!
exists = frappe.db.sql("select name from `tab{doctype}` where name=%s for update".format(doctype=frappe.db.escape(doctype)), new)
exists = frappe.db.sql("select name from `tab{doctype}` where name=%s COLLATE utf8mb4_bin for update".format(doctype=frappe.db.escape(doctype)), new)
exists = exists[0][0] if exists else None exists = exists[0][0] if exists else None


if merge and not exists: if merge and not exists:


Ładowanie…
Anuluj
Zapisz