You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server/services/event-detail/event-detail.service.ts:141-163 — the venueCreateData() method force-nulls/drops these fields whenever the venue is "linked" (propertyId or communityId set), even though the client sends them and the UI shows the inputs unconditionally:
// Known bug (not fixed here): linked-venue create still force-nulls the// fields below even though the client shows those inputs unconditionally.numVisitors: linked ? null : (input.numVisitors??null),capacity: linked ? null : (input.capacity??null),schedule: linked ? undefined : input.schedule===null ? Prisma.JsonNull : input.schedule,imageUrls: linked ? [] : (input.imageUrls??[]),
The update path (venueUpdateData(), lines 165-182) does NOT have this bug — it respects partial semantics. So editing an existing linked venue and adding schedule/gallery WILL persist. Only CREATE is affected.
Repro steps
Open an Event → Venues tab
Click "Add Venue"
Select venue type = Property (or Community), pick a linked option
Fill in schedule blocks (Start Date, End Date, description, per-schedule gallery images)
Fill in the Venue Gallery (imageUrls)
Fill in numVisitors and capacity
Save → success toast appears (no error)
Reload the page / re-open the venue → schedule, gallery, numVisitors, and capacity are all empty/null
Why the client sends the data
components/ssp/inventory/event-venues-tab.tsx:435-461 — sharedFields (schedule, imageUrls, numVisitors, capacity) is constructed unconditionally and spread into both the create (line 461) and update (line 455) mutation payloads, regardless of isLinkedVenueType. The Venue Gallery (line 892) and Schedule Gallery (line 1018) JSX sections are NOT gated behind isLinkedVenueType — they render for all venue types.
Zod schema (no validation gap):server/services/event-detail/event-detail.types.ts:85-95 — venueLinkedFields accepts all fields for linked venues; the drop happens in the service mapper, not the schema.
Remove the linked ? ... : ternary for schedule, imageUrls, numVisitors, and capacity in venueCreateData() so linked venues persist these fields on create, matching the update path's behavior.
Activity
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Merge pull request anomalyco#855 from Yumerain/fix/zh-cn-doc-format
feat(web): add local Den dev stack (anomalyco#855)
momenheshamahmed commentedon Jul 29, 2026
Repro confirmed — linked-venue CREATE silently drops schedule, gallery, numVisitors, capacity
Root cause
server/services/event-detail/event-detail.service.ts:141-163— thevenueCreateData()method force-nulls/drops these fields whenever the venue is "linked" (propertyIdorcommunityIdset), even though the client sends them and the UI shows the inputs unconditionally:The update path (
venueUpdateData(), lines 165-182) does NOT have this bug — it respects partial semantics. So editing an existing linked venue and adding schedule/gallery WILL persist. Only CREATE is affected.Repro steps
Why the client sends the data
components/ssp/inventory/event-venues-tab.tsx:435-461—sharedFields(schedule, imageUrls, numVisitors, capacity) is constructed unconditionally and spread into both the create (line 461) and update (line 455) mutation payloads, regardless ofisLinkedVenueType. The Venue Gallery (line 892) and Schedule Gallery (line 1018) JSX sections are NOT gated behindisLinkedVenueType— they render for all venue types.Surfaces involved
server/services/event-detail/event-detail.service.ts—venueCreateData()(lines 141-163)components/ssp/inventory/event-venues-tab.tsx—saveCustomVenue()(lines 399-463)server/services/event-detail/event-detail.types.ts:85-95—venueLinkedFieldsaccepts all fields for linked venues; the drop happens in the service mapper, not the schema.Fix scope (not yet applied — awaiting confirmation)
Remove the
linked ? ... :ternary forschedule,imageUrls,numVisitors, andcapacityinvenueCreateData()so linked venues persist these fields on create, matching the update path's behavior.