Browse Source

fix: while duplicating do not set module field

(cherry picked from commit 21650ef383)
version-14
Shariq Ansari 2 years ago
committed by Mergify
parent
commit
5542a3c415
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/desk/doctype/workspace/workspace.py

+ 1
- 0
frappe/desk/doctype/workspace/workspace.py View File

@@ -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…
Cancel
Save