Sierra Exception for custom schedule

Created on 2 May 2020, over 4 years ago
Updated 23 June 2023, about 1 year ago

Drupal throws an exception on saving Custom recurrence with Sierra widget.
InvalidArgumentException: Failed to parse RFC string, line is not starting with a property name followed by ":" in RRule\RSet->__construct() (line 77 of /vendor/rlanvin/php-rrule/src/RSet.php).

Sierra widget is looking for "RRULE:" prefix in RRULE field.

it's caused by
// Preserve non-RRULE components from original string.
$originalString = $form_state->getValue('original_string');
$rset = new RSet($originalString);

I changed Alpha to Sierra and date was already stored in Alpha format.

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States khaldoon_masud

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

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • πŸ‡ΊπŸ‡ΈUnited States caspervoogt

    The patch from #2 fixed this issue for me. I am running 3.1.0. Without this patch, the this module is pretty much impossible for my client to use; RTBC as far as I'm concerned. Good work, @khaldoon_masud!

Production build 0.71.5 2024