Fix: Include extendedProps in iCalendar Events to Allow Custom Properties #7757
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Changes
This pull request addresses an issue in FullCalendar when handling iCalendar feeds. According to the official FullCalendar documentation, non-standard fields in event objects are moved into the
extendedProps
hash during event parsing, allowing developers to add custom properties to events. However, in the current implementation for iCalendar feeds, it was not possible to include additional custom properties inextendedProps
. Only specific values such aslocation
,organizer
, anddescription
were allowed, preventing developers from adding their own custom properties.To resolve this, I modified the
expandICalEvents
andbuildNonDateProps
functions so that anyextendedProps
passed as part of the event source configuration are merged into the event object. This allows custom properties provided viaextendedProps
to be included in the event object for iCalendar feeds.Summary of Changes
expandICalEvents
to pass theextendedProps
received from the event source configuration when building each event object.buildNonDateProps
to ensure that theextendedProps
are properly merged with the iCalendar event’slocation
,organizer
, anddescription
fields, so custom properties can be added to the event.This fix ensures that developers can now include their own custom properties in
extendedProps
when working with iCalendar feeds, as described in the FullCalendar documentation.#7761