- π¦πΊAustralia dpi Perth, Australia
Looked into this issue a bit more.
This scenario looks like its only possible when the rules given DO NOT match the 'custom' recurrence option in
guessRecurrenceOptionFromRrule
, such as when you have a clean rrule likeFREQ=DAILY
, with EXDATES, and the occurrence model is NOT interacted with.Right now, whenever you interact with the occurrence model at all, when you close the modal with the 'Done' button (not the X quit button), the recurrence option is always set to 'custom' in
transferModalToFormStateCallback
:$input = &$form_state->getUserInput(); // After closing modal, switch dropdown to custom setting. $input[$fieldName][$delta]['recurrence_option'] = 'custom';
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.
----
On the
DateRecurModularSierraWidget::validateModularWidget
changes introduced by 10, I wasnt particularly happy with these changes. They look quite brittle, tied to a particular RRULE style. So this has been discarded.----
The change proposed by #5 does not look relevant to this issue, as I was able to reproduce and fix the primary issue reported by this issue without the proposed modification. This change has been discarded. Please create a new issue if you find your bug persists.
-
dpi β
committed a94d4f1c on 3.x authored by
Graber β
Issue #3116018 by Graber, dpi: Date exclude save wiping out dates and...
-
dpi β
committed a94d4f1c on 3.x authored by
Graber β
- Issue was unassigned.
- Status changed to Fixed
almost 2 years ago 6:12am 13 February 2023 - π¦πΊAustralia dpi Perth, Australia
Committed with modifications, please test, thanks.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 11:50pm 23 March 2023 - πΊπΈUnited States Ki
If you use PHP 7.x and get the PHP error, "TypeError: explode() expects parameter 2 to be string, bool given in explode()", apply this patch.
- πΊπΈUnited States seanr
I had to manually massage the patch in 21 to get it to work - it needs a re-roll (still against 3.1.0), but it also needs a trailing line break. I've attached my locally modified patch which should apply, but it really needs a proper re-roll (at least until we get a new release).