Parcourir la source

Name with accents can be renamed now

version-14
Kanchan Chauhan il y a 9 ans
Parent
révision
55fbc3cbf9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      frappe/model/rename_doc.py

+ 1
- 1
frappe/model/rename_doc.py Voir le fichier

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

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!
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

if merge and not exists:


Chargement…
Annuler
Enregistrer