Skip to content

feat: validate phone field#206

Open
vishwajeet-13 wants to merge 2 commits into
BuildWithHussain:mainfrom
vishwajeet-13:feat/validate-buzz-custom-fields
Open

feat: validate phone field#206
vishwajeet-13 wants to merge 2 commits into
BuildWithHussain:mainfrom
vishwajeet-13:feat/validate-buzz-custom-fields

Conversation

@vishwajeet-13
Copy link
Copy Markdown
Collaborator

image

Comment thread buzz/api/__init__.py Outdated
Comment on lines +428 to +436
phone_fields = frappe.db.get_all(
"Buzz Custom Field",
filters={"event": event, "enabled": 1, "fieldtype": "Phone"},
fields=["fieldname", "label"],
)
phone_map = {cf["fieldname"]: cf["label"] for cf in phone_fields}

if booking_custom_fields:
validate_custom_fields(booking_custom_fields, phone_map)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why two places?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants