Custom dates with excludes not being saved

Created on 22 June 2023, over 1 year ago
Updated 23 June 2023, over 1 year ago

Problem/Motivation

Currently if using the Sierra widget and you have a custom repeat occurrence that's set to daily, but ends after a specific date then upon the next reload of the field the custom setting is lost and is reverted to "daily" and any excluded dates are lost.

Steps to reproduce

  1. Install module, create date_recur field on node, set form display to Sierra widget.
  2. Create new node, fill out date fields. For the repeat occurrence select "Custom..". In the modal that opens, keep the default 1 / days repeat option. For the Ends field select after and pick a date/time in the future. Then click done on the modal.
  3. Save the node
  4. Go back to edit the node
  5. Note the repeat occurrence field is set to "daily" and not a custom interpreted rrule.
  6. If you save the node now you lose any occurrences you may have previously set.

Proposed resolution

This seems to stem back to a comment noted on the related issue πŸ› Date exclude save wiping out dates and exclusions when saving Fixed

I think what needs to happen here is the guesser needs to match the transferModel behaviour by setting to custom if there are any exdates.

This seems to be the exact issue. Exdates are not being considered here and so due to the logic currently in the guesser it assumes the repeat is "daily"

πŸ› Bug report
Status

Closed: duplicate

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States carsoncho Kansas City, MO

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

Comments & Activities

Production build 0.71.5 2024