Smart Date recurring dates cause duplicates

Created on 18 May 2022, over 2 years ago
Updated 14 May 2024, 6 months ago

Problem/Motivation

Events created with SmartDate which recur get multiple instances in the created ical file.

NOTE: This appears to be a duplicate of 3231318 . However with the patch installed the problem still exists.

Steps to reproduce

  • Create view Format iCal Style Wizard
  • Include the date (SmartDate) and Title
  • Map the Date to the SmartDate field
  • Create and event with a fixed duration that repeats (eg every day for three occurrences)

Result

The recurring event is created in the ical file multiple times - if there are three occurrences, there are three instances in the ical:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Drupal iCal API//EN
X-WR-CALNAME:Te Anau Events
BEGIN:VEVENT
UID:628579e193d4d
DTSTART;VALUE=DATE:20220517
SEQUENCE:0
TRANSP:TRANSPARENT
DTEND;VALUE=DATE:20220522
SUMMARY: Test-repeat 
CLASS:PUBLIC
X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
DTSTAMP:20220518T225737Z
END:VEVENT
BEGIN:VEVENT
UID:628579e194736
DTSTART;TZID=Pacific/Auckland:20220524T170000
SEQUENCE:0
TRANSP:TRANSPARENT
DTEND;TZID=Pacific/Auckland:20220524T173000
SUMMARY: Recurring test 
CLASS:PUBLIC
RRULE:FREQ=DAILY;INTERVAL=1;COUNT=3
DTSTAMP:20220518T225737Z
END:VEVENT
BEGIN:VEVENT
UID:628579e195a88
DTSTART;TZID=Pacific/Auckland:20220524T170000
SEQUENCE:0
TRANSP:TRANSPARENT
DTEND;TZID=Pacific/Auckland:20220524T173000
SUMMARY: Recurring test 
CLASS:PUBLIC
RRULE:FREQ=DAILY;INTERVAL=1;COUNT=3
DTSTAMP:20220518T225737Z
END:VEVENT
BEGIN:VEVENT
UID:628579e195e58
DTSTART;TZID=Pacific/Auckland:20220524T170000
SEQUENCE:0
TRANSP:TRANSPARENT
DTEND;TZID=Pacific/Auckland:20220524T173000
SUMMARY: Recurring test 
CLASS:PUBLIC
RRULE:FREQ=DAILY;INTERVAL=1;COUNT=3
DTSTAMP:20220518T225737Z
END:VEVENT
BEGIN:VEVENT
UID:628579e19699a
DTSTART;TZID=Pacific/Auckland:20220625T193000
SEQUENCE:0
TRANSP:TRANSPARENT
DTEND;TZID=Pacific/Auckland:20220625T230000
SUMMARY: The Milford Crew 
CLASS:PUBLIC
DTSTAMP:20220518T225737Z
END:VEVENT
END:VCALENDAR

Environment

OS: Fedora Linux

PHP 8.0.18

DB: MariaDB 10.5.13

Drupal: 9.3.11
views_ical 1.0.0-alpha8 with 3231318-4.patch (result is the same with latest dev)

views_ical install record

  - Upgrading drupal/views_ical (dev-1.x b8d990b => 1.0.0-alpha8)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/views_ical (1.0.0-alpha8): Extracting archive
  - Applying patches for drupal/views_ical
    https://www.drupal.org/files/issues/2021-10-03/views_ical-duplicate-smart-date-events-3231318-4.patch (Smart Date - Recurring Dates cause duplicates - 3231318)

Related

3231318
3277098

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇿New Zealand norwegian.blue

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024