本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
anoopmb
/
frappe
關注
1
收藏
0
複製
0
程式碼
問題
0
合併請求
0
版本發佈
0
Wiki
活動
瀏覽代碼
[minor] rename_doc.py
version-14
Rushabh Mehta
8 年之前
父節點
7ccbbce572
當前提交
3d4a05490f
共有
1 個檔案被更改
,包括
4 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
frappe/model/rename_doc.py
+ 4
- 0
frappe/model/rename_doc.py
查看文件
@@ -21,6 +21,10 @@ def rename_doc(doctype, old, new, force=False, merge=False, ignore_permissions=F
if ignore_if_exists and frappe.db.exists(doctype, new):
return
if old==new:
frappe.msgprint(_('Please select a new name to rename'))
return
force = cint(force)
merge = cint(merge)
Write
Preview
Loading…
取消
儲存