Skip to content

Include localized events that inherit dates from origin - #197

Merged
edalzell merged 1 commit into
mainfrom
fix/localized-events-missing-origin-dates
Sep 2, 2026
Merged

edalzell merged 1 commit into
mainfrom
fix/localized-events-missing-origin-dates

Conversation

@edalzell

Copy link
Copy Markdown
Member

Summary

  • Localized event stubs (e.g. Arabic copy with only a title) inherit start_date via value() but not get()/has().
  • hasStartDate / lastPossibleDate used the raw getters, so those entries never produced calendar occurrences.
  • Use value() so origin dates resolve; still skip truly dateless entries and past events.

Test plan

  • Multi-site: localize an event without copying dates; calendar on the localized site shows the occurrence
  • Past localized event still omitted from upcoming/between
  • Existing single-site event queries unchanged

hasStartDate and lastPossibleDate used get()/has(), which skip origin fallback, so site localizations that only override title were dropped from calendars.
@github-actions github-actions Bot added the fix label Aug 31, 2026
@edalzell
edalzell marked this pull request as ready for review September 2, 2026 19:51
@edalzell
edalzell merged commit f18c8b9 into main Sep 2, 2026
26 checks passed
@edalzell
edalzell deleted the fix/localized-events-missing-origin-dates branch September 2, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant