Skip to content

Commit 7f0b5dd

Browse files
committed
fix: update initial route generation to use random string for enhanced uniqueness
1 parent 8788628 commit 7f0b5dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • forms_pro/forms_pro/doctype/form

forms_pro/forms_pro/doctype/form/form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def linked_doctype_doc(self) -> Document:
3232
return frappe.get_doc("DocType", self.linked_doctype)
3333

3434
def generate_initial_route(self) -> str:
35-
return "s/" + self.linked_doctype + self.name
35+
return "s/" + frappe.utils.random_string(5) + self.name
3636

3737
def before_insert(self) -> None:
3838
self.status = "Draft"

0 commit comments

Comments
 (0)