From 6ce73956748af9b60f1aeb6b991507e9722dda64 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 19 Apr 2023 16:51:23 +0530 Subject: [PATCH] fix: validate route conflict with new title if title is changed --- frappe/desk/doctype/workspace/workspace.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappe/desk/doctype/workspace/workspace.py b/frappe/desk/doctype/workspace/workspace.py index 0866795538..7b5970a7d6 100644 --- a/frappe/desk/doctype/workspace/workspace.py +++ b/frappe/desk/doctype/workspace/workspace.py @@ -17,7 +17,10 @@ class Workspace(Document): def validate(self): if self.public and not is_workspace_manager() and not disable_saving_as_public(): frappe.throw(_("You need to be Workspace Manager to edit this document")) - validate_route_conflict(self.doctype, self.name) + if self.has_value_changed("title"): + validate_route_conflict(self.doctype, self.title) + else: + validate_route_conflict(self.doctype, self.name) try: if not isinstance(loads(self.content), list):