Event IDs passed to FullCalendar are not guaranteed to be unique

Created on 7 August 2025, about 2 months ago

Problem/Motivation

Event IDs are constructed using:
'id' => (string) $key . $unit_id,

This method does not guarantee uniqueness and can result in duplicated IDs, especially when $key and $unit_id combine into identical strings from different event/unit pairs.

For example:

$key = 1; $unit_id = 23;   // "123"
$key = 12; $unit_id = 3;   // "123"

This breaks expected behaviour in FullCalendar, where event.id must be unique per event.

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇬🇧United Kingdom colinstillwell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024