When a view is based on something other than the event record, the UIDs in the .ics file may not be unique because the UIDs are based on the base field, not the event node. For example, I have a view that is a User based view that uses Relationships to find all the scheduled events on the user's calendar. Because the base field is the user's User entity, the $entity_id
part of line 204 ($event['uid'] = "calendar.$entity_id.$date_field_name.$date_field_delta@$domain";
) is the user's UID, making all the calendar UIDs identical. Consequently, calendar applications like Apple Calendar only import the last item.
Comment | File | Size | Author |
---|---|---|---|
#2 | date_ical-field_alias_based_uid.patch | 1.31 KB | John Franklin |
Comments
Comment #2
John Franklin CreditAttribution: John Franklin commentedAttached patch uses the selected date field's entity instead of the base field's entity.
Comment #3
coredumperror CreditAttribution: coredumperror commentedOoo, this should fix another problem that a user was having with UID uniqueness as well! I'll get this patch tested and applied as soon as I'm able.
Comment #4
thedut CreditAttribution: thedut commentedGreat patch, it works !
And it helps solving CREATED, LAST-MODIFIED, and URL components too.
Comment #6
joseph.olstad