소스 검색

[fix] rename_doc

version-14
Rushabh Mehta 9 년 전
부모
커밋
99f1682721
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      frappe/model/rename_doc.py

+ 1
- 1
frappe/model/rename_doc.py 파일 보기

@@ -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 COLLATE utf8mb4_bin for update".format(doctype=frappe.db.escape(doctype)), new)
exists = frappe.db.sql("select name from `tab{doctype}` where name=%s COLLATE utf8mb4_unicode_ci for update".format(doctype=frappe.db.escape(doctype)), new)
exists = exists[0][0] if exists else None

if merge and not exists:


불러오는 중...
취소
저장