Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion buzz/events/doctype/buzz_event/buzz_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
"fieldname": "route",
"fieldtype": "Data",
"label": "Route",
"no_copy": 1,
"unique": 1
},
{
Expand Down Expand Up @@ -531,7 +532,7 @@
"link_fieldname": "event"
}
],
"modified": "2026-02-02 12:39:20.030745",
"modified": "2026-02-11 19:31:31.774522",
"modified_by": "Administrator",
"module": "Events",
"name": "Buzz Event",
Expand Down
5 changes: 4 additions & 1 deletion buzz/events/doctype/buzz_event/buzz_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import append_number_if_name_exists
from frappe.utils.data import time_diff_in_seconds

from buzz.utils import only_if_app_installed
Expand Down Expand Up @@ -59,6 +60,7 @@ class BuzzEvent(Document):
sponsor_deck_reply_to: DF.Data | None
start_date: DF.Date
start_time: DF.Time
tax_inclusive: DF.Check
tax_label: DF.Data | None
tax_percentage: DF.Percent
ticket_email_template: DF.Link | None
Expand Down Expand Up @@ -126,7 +128,8 @@ def validate_tax_settings(self):

def validate_route(self):
if self.is_published and not self.route:
self.route = frappe.website.utils.cleanup_page_name(self.title).replace("_", "-")
route = frappe.website.utils.cleanup_page_name(self.title).replace("_", "-")
self.route = append_number_if_name_exists("Buzz Event", route, fieldname="route")

def validate_guest_verification_config(self):
"""Ensure email/SMS is configured when OTP verification is enabled."""
Expand Down
Loading