瀏覽代碼

fix: while duplicating do not set module field

(cherry picked from commit 21650ef383)
version-14
Shariq Ansari 2 年之前
committed by Mergify
父節點
當前提交
5542a3c415
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      frappe/desk/doctype/workspace/workspace.py

+ 1
- 0
frappe/desk/doctype/workspace/workspace.py 查看文件

@@ -266,6 +266,7 @@ def duplicate_page(page_name, new_page):
doc.public = new_page.get("is_public")
doc.for_user = ""
doc.label = doc.title
doc.module = ""
if not doc.public:
doc.for_user = doc.for_user or frappe.session.user
doc.label = f"{doc.title}-{doc.for_user}"


Loading…
取消
儲存