fix: phone number input field is missing from mail (#17035)
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
co-authored by
Udit Takkar
parent
5718cc5e17
commit
0b0fee3985
@@ -1,6 +1,6 @@
|
||||
import type z from "zod";
|
||||
|
||||
import { TITLE_FIELD } from "@calcom/features/bookings/lib/SystemField";
|
||||
import { TITLE_FIELD, SMS_REMINDER_NUMBER_FIELD } from "@calcom/features/bookings/lib/SystemField";
|
||||
import type { bookingResponse } from "@calcom/features/bookings/lib/getBookingResponsesSchema";
|
||||
import type { CalendarEvent } from "@calcom/types/Calendar";
|
||||
|
||||
@@ -17,6 +17,9 @@ export default function getLabelValueMapFromResponses(
|
||||
if (!!responses?.[TITLE_FIELD] && !isDynamicEvent) {
|
||||
userFieldsResponses[TITLE_FIELD] = responses[TITLE_FIELD];
|
||||
}
|
||||
if (!!responses?.[SMS_REMINDER_NUMBER_FIELD] && !isDynamicEvent) {
|
||||
userFieldsResponses[SMS_REMINDER_NUMBER_FIELD] = responses[SMS_REMINDER_NUMBER_FIELD];
|
||||
}
|
||||
|
||||
for (const [, value] of Object.entries(userFieldsResponses)) {
|
||||
if (!value.label || (!isOrganizer && value.isHidden)) {
|
||||
|
||||
Reference in New Issue
Block a user